Commit Graph

170505 Commits

Author SHA1 Message Date
christos 77cf38f568 PR/38797: FreeBSD support from ttw plus bsd at cobbled dot net. 2008-05-30 14:19:57 +00:00
ad 13cf4bcc55 PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Remove ifdef(i386), kernel preemption works on amd64 now.
2008-05-30 12:18:14 +00:00
ad a5ece4c4ec PR kern/38663 Kernel preemption can't be enabled on x86 because of amd64
FPU handling

Adjust FPU trap handling to be preemption safe.
2008-05-30 12:17:11 +00:00
ad f51106f90f Shuffle copyright. 2008-05-30 12:11:44 +00:00
ad 34ade0651a Avoid mispredicted branches. 2008-05-30 12:09:59 +00:00
jmcneill 4bb5a59ae8 Don't call devsw_attach/detach if _MODULE is not defined 2008-05-30 11:26:21 +00:00
jmcneill 5d0bd997c2 Don't call devsw_attach/detach if _MODULE is not defined. 2008-05-30 11:24:57 +00:00
ad 0a34921e9f fillw is dead. 2008-05-30 11:03:29 +00:00
martin 5faa185ff6 Pass the com softc to comintr, not the device_t.
Fixes PR kern/38776.
2008-05-30 10:59:42 +00:00
ad 4a0f8c8fcf Since breakpoints don't work, dump basic info about the trap before
entering the debugger. Sometimes ddb only makes the situation worse.
2008-05-30 10:38:21 +00:00
ad c51560fae0 Don't try to resolve pagefaults from interrupt mode; it can result in a
LOCKDEBUG panic, or the machine getting really confused. Instead, panic
at the earliest oppertunity.
2008-05-30 10:36:20 +00:00
joerg f608e44ab1 Add a function to extract the primary bus number of PCI host bridges,
as far as specific code for this already existed.
2008-05-30 09:49:07 +00:00
rmind 1be38c90d8 do_sys_accept: release the reference to sock in few error paths.
Should fix PR/38790, report and test-case by Nicolas Joly.
2008-05-30 09:49:01 +00:00
rmind a68758f8bd sched_idle: initialise 'tci' to NULL, avoids compiler warning. 2008-05-30 08:31:42 +00:00
wiz 8f7dd998e2 Fix xref. End sentence with a dot. 2008-05-30 07:41:42 +00:00
ginsbach b750bd80b0 Add some more LC_TYPE aliases. OK'ed by tnozaki. 2008-05-30 03:24:02 +00:00
ginsbach 008c3f646e These are really aliases for zh_CN.eucCN. This was a redundancy that
was incorrectly copied from FreeBSD.  OK'ed by tnozaki.
2008-05-30 03:12:59 +00:00
mrg 04f2afbef7 convert the rest of my licenses to 2-clause, extracting myself out
from a group as necessary.

bozohttpd remains, but it will get fixed next time i update it.
2008-05-30 02:29:37 +00:00
ad e98d2c1016 lwp_exit_switchaway: set l_lwpctl->lc_curcpu = EXITED, not NONE. 2008-05-29 23:29:59 +00:00
rmind 29170d3854 Simplifcation for running LWP migration. Removes double-locking in
mi_switch(), migration for LSONPROC is now performed via idle loop.
Handles/fixes on-CPU case in lwp_migrate(), misc.

Closes PR/38169, idea of migration via idle loop by Andrew Doran.
2008-05-29 22:33:27 +00:00
rmind 15e36ef766 sys_shmget: use the correct size variable for uobj_wirepages().
Adjust shm_memlock() for consistency too.

Fixes PR/38782, reported by Adam Hoka.
2008-05-29 21:38:18 +00:00
christos 56fe2d1f4d PR/38791: J.T. Conklin: routing socket event header not cleared 2008-05-29 17:53:01 +00:00
dyoung 7b1d20d162 Delete local variable 'sockets', whose value is never used. Reported
by J.T. Conklin.
2008-05-29 17:26:56 +00:00
joerg 32455b2087 Allow per-interface DHCP configuration using dhcpcd via
ifconfig_xxN=dhcp or a dhcp line in /etc/ifconfig.xxN.
2008-05-29 15:38:35 +00:00
joerg 157262cae8 Explicitly compute the next interval using 64bit arithmetic, if the time
was either stepped backwards or the timer has overflown. This fixes
PR 26470.
2008-05-29 15:27:51 +00:00
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
tsutsui 8578fbdffa - also put a boot failure message to LCD
- fix botched (and unused) macro
- use struct lcd_message consistently
2008-05-29 14:25:00 +00:00
pooka 11e4a43ad9 Specify RUMP_WITHOUT_THREADS only in one place. 2008-05-29 13:12:29 +00:00
pooka 3bca2d2000 Also fake the namecache g/c thread in kthread_create() so that file
systems can again be run without threads (and hence gdb can be used
on them).
2008-05-29 12:25:12 +00:00
pooka 0e278b287d Use rump_sys_pread/write instead of rump_sys_read/write to make I/O
from offset != 0 work again.

from Arnaud Ysmal
2008-05-29 12:03:52 +00:00
pooka df177ce90b regen 2008-05-29 12:02:31 +00:00
pooka de98844194 Mark pread/pwrite rump syscalls.
from Arnaud Ysmal
2008-05-29 12:01:37 +00:00
ad 355c5b9e63 Fix busted test. 2008-05-29 11:32:07 +00:00
hannken 336f2a69f4 ffs_copyonwrite(): stop abusing ffs_balloc() to get a block address.
Use ufs_getlbns()/bread() instead.
Saves some reads and removes deep recursion with possible deadlock
when ffs_balloc() runs copy-on-write on the buffer returned.
2008-05-29 10:00:50 +00:00
jnemeth a41d8833cb add reference to siisata(4) 2008-05-29 08:23:39 +00:00
taca bc6fdaada8 OpenSSL 0.9.8g is released. 2008-05-29 03:04:05 +00:00
apb 3b16a09a38 Current Vers: tzcode2008a / tzdata2008c 2008-05-28 23:39:11 +00:00
ad 79d0501e52 Disable zero copy if MULTIPROCESSOR, until it is fixed:
- The TLB coherency overhead on MP systems is really expensive.
- It triggers a race in the VM system (grep kpause uvm/*).
2008-05-28 21:01:42 +00:00
wiz 42a745337d Sort SEE ALSO. Bump date for previous. 2008-05-28 19:00:16 +00:00
tonnerre 2fdc624293 Two unimportant changes for ciss(4):
- Add reference to bio(4), which is supported now.
 - Change my mail address to the NetBSD address since thebsh is no longer
   reachable, and people keep contacting me.
2008-05-28 17:53:25 +00:00
dyoung 5035ceab3b Fix kern/38775, "ifconfig inet delete fails". 2008-05-28 17:17:14 +00:00
joerg 5c0597e08b Add PMF hooks. Fixes PR 38675. 2008-05-28 16:20:17 +00:00
dyoung 801c395b47 Run shutdown hooks whether or not the kernel has panicked. Restores
NetBSD's shutdown behavior of more than 6 years before rev 1.176.
Ok joerg@.

It is essential that we restore some hardware to initial conditions
before rebooting, in order to avoid interfering with the BIOS
bootstrap.  For example, if NetBSD gives control back to the Soekris
comBIOS while the kernel text is write-protected, the BIOS bootstrap
hangs during the power-on self-test, "POST: 0123456789bcefghip".
In principle, bus masters can also interfere with BIOS boot.
2008-05-28 15:40:58 +00:00
tsutsui 07c5a11f73 Include files.bluetooth. 2008-05-28 14:05:14 +00:00
tsutsui 0e88f65e18 Print boot banner and a loading kernel name onto LCD,
for users who don't have serial console.  Bump version.
2008-05-28 14:04:07 +00:00
ad b5d8351e8e PR kern/38355 lockf deadlock detection is broken after vmlocking
- Fix it; tested with Sun's libMicro.
- Use pool_cache.
- Use a global lock, so the deadlock detection code is safer.
2008-05-28 13:35:32 +00:00
jmcneill 5e10ee6416 PR kern/38774: cosmetic typo in umidireg.h: SubType/Subtype, from
Patrick Mahoney
2008-05-28 12:59:30 +00:00
ad 788aa3a3b0 Give it a private X86_MAXPROCS def. XXX 2008-05-28 12:48:21 +00:00
ad 032b92980a /usr/include/atomic.h, for Solaris source compat. 2008-05-28 12:28:12 +00:00
njoly 7cdbbcf80d Add LINUX_TMPFS_SUPER_MAGIC, and map it to our tmpfs.
This makes sem_open/sem_unlink (POSIX named semaphores) work under
NPTL emulation.
2008-05-28 12:01:10 +00:00