Bill Paul
b32ba21dfd
Small tweak: in xl_rxeof(), rxstat should be u_int32_t, not u_int16_t.
1999-08-19 03:47:18 +00:00
Peter Wemm
bb41d37104
Try using the builtin ffs() for egcs, it (by random inspection)
...
generates slightly better code and avoids the incl then subl when
using ffs(foo) - 1.
1999-08-19 00:32:48 +00:00
Peter Wemm
ebf9e95f31
Update for MI switch code, and trim a heap of unused (I believe) entries.
1999-08-19 00:20:10 +00:00
Peter Wemm
28f31ccfaf
Use the MI process selection. We use a quick routine to decide whether
...
to get the mplock and enter the kernel to run a process in the SMP case.
1999-08-19 00:18:48 +00:00
Peter Wemm
8dd36a4d6a
Use MI switch code for process selection. This gets run queues entirely
...
out of the asm code, and as a bonus implements rtprio and idprio for the
Alpha. Previously if you ran an idprio process, you were assured of a
deadlock.
1999-08-19 00:16:52 +00:00
Peter Wemm
8928d4404a
Update for run queue code.
1999-08-19 00:15:27 +00:00
Peter Wemm
26d12af46c
Don't initialize run queues here, do it all in one place.
1999-08-19 00:14:43 +00:00
Peter Wemm
f33a7ade5d
Run queue heads have moved to TAILQ's.
1999-08-19 00:13:58 +00:00
Peter Wemm
f0c1d784c0
Update for MI switch components. struct prochd is replaced by TAILQ's.
...
Use a spare pad field for saving the run queue index.
1999-08-19 00:13:15 +00:00
Mike Pritchard
3eaf789e97
Sort xrefs.
...
Submitted by: Alexey Zelkin <phantom@cris.net>
1999-08-19 00:10:37 +00:00
Peter Wemm
dba6c5a6f9
Extract the next runnable process selection out of cpu_switch() into a
...
fairly machine independent C routine. gcc actually does a pretty good
job of this.
Reviewed by: msmith (in principle)
1999-08-19 00:06:53 +00:00
Matthew N. Dodd
4b31e9d6a7
Make these actually compile. I got a little delete happy pruning includes
...
and used 'command' instead of 'cmd' in a few cases. Also clear up some
unused variables.
Pointed out by: phk
1999-08-18 22:14:24 +00:00
Poul-Henning Kamp
f04626ff22
Add pin-numbers for easy reference.
1999-08-18 20:45:57 +00:00
Nick Sayer
7cc9cff983
printf("%x",dev); -> printf("%s",devtoname(dev));
1999-08-18 17:42:41 +00:00
Geoff Rehmet
2e4e1b4c31
Slight tweak to tcp.blackhole to add optional behaviour to
...
drop any segment arriving at a closed port.
tcp.blackhole=1 - only drop SYN without RST
tcp.blackhole=2 - drop everything without RST
tcp.blackhole=0 - always send RST - default behaviour
This confuses nmap -sF or -sX or -sN quite badly.
1999-08-18 15:40:05 +00:00
Peter Wemm
2bb0e3300a
Hopefully make IFMEDIA_DEBUG compile. if_xname[] is a NetBSD addition,
...
we need if_name, if_unit. (maybe we should pick up if_xname[] ?)
Pointed out by: jkb@yahoo-inc.com
1999-08-18 13:13:01 +00:00
Peter Wemm
e8ebc7f504
The "LINUX" option isn't actually used or referenced anywhere. The stuff
...
that goes to opt_dontuse.h is so an opt_*.h file doesn't get created even
though an option may be used for bringing stuff in via files[.*].
Pointed out by: bde
1999-08-18 11:28:36 +00:00
Nick Hibma
25519565df
1) rename dev->self to be consistent
...
2) use device_printf
3) properly tear down and disable interrupts when init fails
1999-08-18 10:24:59 +00:00
Nick Hibma
3d9a083508
Remove redundant spaces in the whole line, not only the first occurrence.
...
(not that anyone actually reads the created .c and .h files :)
1999-08-18 08:39:14 +00:00
KATO Takenori
31deecc479
Merge from sys/i386/isa/spkr.c revision 1.38.
1999-08-18 08:24:35 +00:00
KATO Takenori
7216803bed
Merge from sys/i386/i386/machdep.c revision 1.359.
1999-08-18 08:22:10 +00:00
KATO Takenori
a0abbb38fb
Merge from sys/i386/conf/files.i386 revision 1.259.
1999-08-18 08:20:28 +00:00
Matthew N. Dodd
b2864868b3
SIOCSIFADDR, SIOCGIFADDR, and SIOCSIFMTU are implemented in
...
sys/net/if_ethersubr.c:ether_ioctl(). Drivers need not implement generic
behavior.
PR: kern/12126
Submitted by: in part by Boris Popov <bp@butya.kz>
1999-08-18 06:12:00 +00:00
Chris Costello
f437b38cf7
Fix a bunch of broken cross-references
1999-08-18 05:55:22 +00:00
Alan Cox
08c40841d8
Create callable (non-inline) versions of the atomic_OP_TYPE functions
...
that are linked into the kernel. The KLD compilation options are
changed to call these functions, rather than in-lining the
atomic operations.
This approach makes atomic operations from KLDs significantly
faster on UP systems (though somewhat slower on SMP systems).
PR: i386/13111
Submitted by: peter.jeremy@alcatel.com.au
1999-08-18 04:08:31 +00:00
Matt Jacob
c531b7fc1f
Fix breakage - an extra brace got inserted where DIAGNOSTIC was defined
...
but MAP_LOCK_DIAGNOSTIC wasn't.
1999-08-18 03:56:57 +00:00
Mike Smith
dc055b0c58
Remove the SMBIOS detection and definitions; this should be handled in a
...
loadable module (under development).
1999-08-18 02:20:04 +00:00
Julian Elischer
944494356b
Devfs isn't quite dead yet... Add back devfs support to ptys..
...
When you use pty(N) it creates pty(N+1) ready for your use in the DEVFS,
so DEVFS is not cluttered up with hundreds of ptys you are never going to
use.
1999-08-17 23:08:51 +00:00
Brian Feldman
38c808edb7
Unbreak the nfs KLD_MODULE. It needs a bit more of vm_page.h than was
...
exported (notably vm_page_undirty()). Also, let vm_page_dirty() work
in a KLD.
1999-08-17 22:48:10 +00:00
Bill Fumerola
a444756625
(1) Fix a spelling mistake in a comment.
...
(2) Add braces to avoid ambigious if/if/else
Reviewed by: bde
1999-08-17 22:13:06 +00:00
Bill Fumerola
4fae07fae9
Fix a printf(3) formatter to match its variable.
...
Reviewed by: bde
1999-08-17 22:11:02 +00:00
Bill Fumerola
ed8bcdec67
Fix a printf() formatter to match its variable.
...
Reviewed by: bde, luigi
1999-08-17 22:10:00 +00:00
Bill Fumerola
98f3a0a19e
Remove an unused variable.
...
Reviewed by: bde
1999-08-17 22:08:55 +00:00
Bill Fumerola
aa498bf3d4
Wrap two declarations that are only used in an #ifdef in their own #ifdef.
...
Reviewed by: bde
1999-08-17 22:06:17 +00:00
Bill Fumerola
b8e49f681b
Welcome devtoname(), to most likely be used when printing information
...
about a dev_t.
printf("%x", dev) now becomes printf("%s", devtoname(dev)) because
printing actual information about the device is much more useful then
printing a pointer to an address that would never help the developer debug.
Submitted by: phk, bde
1999-08-17 20:25:50 +00:00
Alan Cox
0e70993526
vm_page_free_toq:
...
Update the comment to reflect the demise of PQ_ZERO and
remove a (now) useless test.
1999-08-17 18:09:01 +00:00
Geoff Rehmet
16f7f31f04
Add net.inet.tcp.blackhole and net.inet.udp.blackhole
...
sysctl knobs.
With these knobs on, refused connection attempts are dropped
without sending a RST, or Port unreachable in the UDP case.
In the TCP case, sending of RST is inhibited iff the incoming
segment was a SYN.
Docs and rc.conf settings to follow.
1999-08-17 12:17:53 +00:00
Kazutaka YOKOTA
e6d37e188f
Recognize Interlink VersaPad. `Tap' action will be recognized
...
as the button 4.
Submitted by: Masachika ISHIZUKA <ishizuka@ish.org>
1999-08-17 12:14:13 +00:00
Kazutaka YOKOTA
64eed277c5
Add definitions for Interlink VersaPad.
1999-08-17 12:12:44 +00:00
Marcel Moolenaar
4c60745daf
Fix a bug in debug-printfs of struct linux_termios fields, where I forgot to
...
change the format specifier after changing the definition of the structure.
Submitted by: billf
Commented on by: bde
1999-08-17 10:27:55 +00:00
Marcel Moolenaar
ce2b2a92fc
Fix bug in the debug-printf of the vfork syscall, where the format specifier
...
didn't match the argument (p->p_pid).
While I'm at it, also fix the dupo in the format string and fix the annoying
inconsistency in all the debug-printfs wrt p_pid arguments. Change all of them
to use the %ld format specifier and cast the p_pid arguments to long.
Submitted by: billf
1999-08-17 10:09:06 +00:00
Nick Hibma
6efd8273f4
- Added documentation
...
- fix bug in data toggle handling
1999-08-17 07:36:34 +00:00
Mike Smith
cb5f885bdf
Search for and interrogate the PnP BIOS if found. This code just prints
...
the PnP device IDs in verbose mode; it does not (yet) save any resource
data or contribute to the PnP process nor resource management.
1999-08-17 07:10:34 +00:00
Mike Smith
7880e8b2d5
Mindbogglingly, many BIOS vendors expect to be able to load %ds with
...
0x40 and then access data stored in real-mode segment 0x40, even when
called in protected mode. Microsoft unfortunately coddle these individuals,
and so must we if we want to run their code.
This change works around GPFs in some APM and PnP BIOS implementations.
Obtained from: Linux
1999-08-17 07:09:13 +00:00
Alan Cox
c52e7044cf
Correct an accidental omission of one "vm_page_undirty" replacement
...
from the previous commit.
1999-08-17 05:56:00 +00:00
Alan Cox
3fc3fec6d3
vm_page_free_toq:
...
Clear the dirty bit mask (vm_page_undirty) before adding the page
to the free page queue.
Submitted by: dillon
1999-08-17 05:08:39 +00:00
Yoshihiro Takahashi
4e943310b7
Use V-FAST mode register to check whether it supports V-FST mode.
...
Submitted by: WATANABE Takuya <sodium@xuni.ne.jp>
1999-08-17 04:33:11 +00:00
Alan Cox
2c28a10540
Add the (inline) function vm_page_undirty for clearing the dirty bitmask
...
of a vm_page.
Use it.
Submitted by: dillon
1999-08-17 04:02:34 +00:00
Alan Cox
bfbacbd93f
vm_pageout_clean:
...
Remove dead code.
Submitted by: dillon
1999-08-17 00:07:35 +00:00
Justin T. Gibbs
e414ac576f
Bump CAM version number.
1999-08-16 23:18:24 +00:00