167135 Commits

Author SHA1 Message Date
uwe
a9092771b1 Use __arraycount. 2008-02-21 01:49:07 +00:00
joerg
36e75d7a01 Ensure that the keyboard is enabled before polling it.
This allows pressing a key to reboot the machine.
2008-02-21 01:42:20 +00:00
uwe
6f94a37806 Revert previous, it's too noisy and misleading (e.g. single stepping
in ddb is not "fatal").  Need to redo it, but not now.
2008-02-21 01:27:42 +00:00
drochner
d22ab0209e Don't call pmf_system_shutdown() from doshutdownhooks() -- it does way
too much in the RB_HALT case, making the "press a key to reboot" prompt
a bad joke. doshutdownhooks() should do shutdownhooks, not more.
Since it is md code which decides about halt/poweroff etc,
pmf_system_shutdown() should be called from there if appropriate.
2008-02-20 23:30:13 +00:00
joerg
4e2cb1955b Remove an unused assignment and convert the remaining for (; cond; )
into while.
2008-02-20 23:16:05 +00:00
drochner
6bc03e0cc0 On system suspend, first get rid of the X server because it doesn't
respect the kernel device tree. (It is arguably ugly to special-case
wscons here, but as long as there is only one driver to be dealt with
it is not worth to introduce another set of hooks.)
Resume the X server at the end of resume, if everything went well.
Acquire the big KERNEL_LOCK before the device tree is walked on
suspend, until after the walk on resume. This is needed to avoid
device accesses by secondary CPUs, and it effectively keeps user
programs from interfering with the suspend process. This might be
revisited when all drivers are using private locks for MP-safeness
(but FreeBSD still does the same afaics).
It should be unnecessary now to switch secondary CPUs offline in
the powerd suspend script.
2008-02-20 22:52:55 +00:00
joerg
0c8d1e69b7 Shrink by using "SysV" or ANSI C memset to init hash table. 2008-02-20 22:46:52 +00:00
drochner
0c3c5106cb -Don't detach/attach the X server in the pmf suspend/resume functions
which are called somewhere in the middle of system suspend. Since the
 X server accesses hardware directly it is outside our control whether
 the devices it accesses are already/still suspended or not, so the only
 way is to detach it before any device suspends and re-attach after
 everything is awake again.
-For that, export a function ("wsdisplay_handlex" for now) which is
 to be called from central suspend/resume code.
-The right way to handle the (normally impossible) case that the X
 server is not detached on suspend is to return an error which should
 abort the suspend process. pmf doesn't yet handle errors of device
 suspend handlers, so as a temporary measure try to suspend anyway,
 to get at least a text console.
-Improve error handling of X server attach/detach and maintain a flag
 which tracks whether the X server is really active.
2008-02-20 22:33:18 +00:00
njoly
ac6668f329 Regen for mlock/munlock syscalls 2008-02-20 21:51:39 +00:00
njoly
e578f6862b Add mlock/munlock syscalls 2008-02-20 21:49:56 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
ad
0a71f5fe72 +cpus 2008-02-20 21:01:23 +00:00
ad
9c235d70b6 - Replace 'xps' with 'procs' and 'lwps'.
- Needs a bit more work.
2008-02-20 20:56:35 +00:00
ad
d2133b5aec stats is gone 2008-02-20 20:43:40 +00:00
ad
fb60c04396 This is useless! 2008-02-20 20:36:29 +00:00
phx
46125cb32d A few bug fixes, approved by garbled:
1. The 'S' operand field has to be swapped with the 'A' operand in the
   output, as long as it is not a store-instruction. To achieve that, I
   have introduced a new operand type Op_ST for the store instructions.
2. srawi has an immediate shift count as third operand, not a register.
3. extsh has only two operands, not three.
2008-02-20 19:12:13 +00:00
matt
c27877a59b progname is const char *, not char * 2008-02-20 18:24:22 +00:00
matt
05ec472001 constify a few arrays 2008-02-20 18:23:50 +00:00
matt
273fa51a4d progname is defined as const char *, not char * 2008-02-20 18:21:39 +00:00
matt
e0eafe6e38 infile is const char *, not char * 2008-02-20 18:20:21 +00:00
matt
ccfd1d4480 errbuf is [], not *. 2008-02-20 18:19:18 +00:00
matt
cd1870ce29 Make hostapd_drivers const. 2008-02-20 18:17:53 +00:00
matt
28dacb0e3a Fix a new bugs that -combine found 2008-02-20 18:16:09 +00:00
matt
421d92a428 Use the VAX_PHYS_TO_S0 macro from vax/tc_machdep.h 2008-02-20 18:15:12 +00:00
matt
eefce21cf2 Revert change of char to int8_t. 2008-02-20 17:18:11 +00:00
matt
d3fcecbd4e Fix extern declaration to match actual declaration (add const). 2008-02-20 17:15:51 +00:00
matt
e2ca3f7504 Merge all the *different* definitions of bufqueues into one common one. 2008-02-20 17:13:29 +00:00
matt
2b028087f5 s/u_\(int[0-9]*_t\)/u\1/g
(change u_int*_t to uint*_t)
2008-02-20 17:05:52 +00:00
matt
a027746fa0 Make NetBSD/vax work again. Add support for __HAVE_FAST_SOFTINTS.
Add a few small optimizations.
2008-02-20 16:37:52 +00:00
mlelstv
f99dbc5c80 fix typo 2008-02-20 15:55:38 +00:00
degroote
af15f6299f Mention support for the 'list scan' command in ifconfig, prompted by hubertf@ 2008-02-20 15:27:43 +00:00
njoly
a10d333001 Make cnt of type size_t, to avoid uiomove() overrun its iovecs.
This makes write(2) works with large buffers (>=4GB).

Fix from pooka, tested by myself.
2008-02-20 15:08:14 +00:00
yamt
c5bb0d332c reduce code duplication. no functional changes are intended. 2008-02-20 11:48:46 +00:00
yamt
c3985cffec make TCP_SETUP_ACK, ICMP_CHECK, TCP_FIELDS_TO_HOST, and TCP_FIELDS_TO_NET
static functions.
2008-02-20 11:44:07 +00:00
markd
975c915750 Add BCM5708C. Treating it like 5750/5780 is a guess but my Dell
PowerEdge 1950 now successfully negotiates 1000baseT full-duplex
where it didn't previously.
2008-02-20 11:26:03 +00:00
markd
83f7182b7b regen. 2008-02-20 11:18:23 +00:00
markd
dd50ec1e06 Add BCM5708C 1000BASE-T media interface, from FreeBSD 2008-02-20 11:17:41 +00:00
drochner
c7a43da627 Add manpages for the complex math functions, originally from SUSv3,
roff source from the Linux documentation project.
Modifications before import:
-added NetBSD RCS ID
-removed Linux PROLOG and declarations with "long double"
-ran the "deshallify" script as required by The Open Group
Split out complex related things into an own Makefile fragment.
Thanks to hubertf for directions.
2008-02-20 09:55:37 +00:00
dholland
32e86dd423 A few more whitespace/KNF. I keep hoping I've found them all... 2008-02-20 05:08:46 +00:00
dholland
1958cbf73e Add the sizes to the extern array declarations. This may not be
necessary, but it's safe and reduces unnecessary divergence.
From OpenBSD.
2008-02-20 04:50:12 +00:00
dholland
a03fcca33d Use random() rather than rand(). Suggested by diffing against OpenBSD. 2008-02-20 04:48:10 +00:00
dholland
72aa2a5043 Remove unused swap() macro. 2008-02-20 04:10:34 +00:00
dholland
fff414b851 Don't misuse random strings as printf formats, even where it's harmless.
Found by diffing against OpenBSD.
2008-02-20 04:10:01 +00:00
matt
e463f28885 For each symtab, remember which symbols have the minimum and maximum value.
When returning a "close" symbol, make sure the value being searched for is
within the symtab.  This prevents ddb matching addresses beyond the end of
the kernel.
2008-02-20 02:30:51 +00:00
matt
0269822f9b ci_curlwp must be set to &lwp0 very early in the boot. Now we get further
into the kernel before dying.
2008-02-19 22:18:03 +00:00
ad
5485a8d6a0 Remove call to sched_yield() to fix compiler warnings. 2008-02-19 20:37:09 +00:00
ad
bb77b45308 Update field markings that describe which locks protect what. 2008-02-19 20:27:27 +00:00
bouyer
af1d7cb986 The event bitmasks provided by the hypervisor are unsigned long (so 64bits
on amd64). Make sure to use the right type to store and manipulate them.
This fixes amd64, where basically any event channel > 31 was not working
(and you get there after starting/stopping a domU a few times). Things
would occasionally unwedge though the spllower() callbacks.
2008-02-19 19:50:53 +00:00
drochner
cc0caabca7 fix sched_setparam() error reporting (broken by recent kauth changes) 2008-02-19 19:38:18 +00:00
matt
e71c736cbb Fix TC on VAX. (missed committing these earlier) 2008-02-19 18:30:33 +00:00