Commit Graph

102255 Commits

Author SHA1 Message Date
bouyer 5dabc83466 Handle EWOULDBLOCK the same way as EPIPE. It seems the TCP socket layer
can return EWOULDBLOCK on some occasion when the connection is broken.
2009-11-05 08:11:24 +00:00
dyoung 6efd54581f Bring this up-to-date with the changes to dbcool_softc. 2009-11-05 05:39:41 +00:00
dyoung 7507fa6898 In awacs(4) and snapper(4), use deviter(9) instead of accessing
alldevs directly.

In pbms(4), delete some unused debugging macros, expand USB
compatibility macros, and add a child-detachment routine.  Simplify
pbms(4) deactivation and detachment.

These changes are compile-tested, only.
2009-11-05 05:37:30 +00:00
thorpej 121cb87046 Fix error in previous that could cause us to refer to the wrong cpu_info
after handling an AST.
2009-11-05 04:19:47 +00:00
rafal c90efca2b1 Regen for MS Wireless 2.4Ghz Xmitter (for wireless mice, etc.) 2009-11-05 03:46:12 +00:00
rafal 21861f5135 Add Microsoft's Wireless 2.4Ghz transmitter (used for e.g. wireless mice). 2009-11-05 03:44:50 +00:00
dyoung f2d55f8489 Use deviter(9) instead of accessing alldevs directly. Test-compiled,
only.
2009-11-05 00:35:12 +00:00
dyoung cfbdb54565 Define devgen_t, a 64-bit device generation number, for use later
by device iteration.
2009-11-05 00:34:05 +00:00
rmind 4c1098f541 do_sys_wait(): fix previous by checking for ru != NULL. Noticed by
Onno van der Linden.  Also, remove redundant arguments (seems that
was_zombie was not used since rev 1.177 ?).
2009-11-04 21:23:02 +00:00
pooka 947f23c334 Pull all relegating memory allocators under a common roof in memalloc.c
(forgot to commit the new file)
2009-11-04 20:38:58 +00:00
pooka d502da58ec misc_stub and emul have been the same thing for a looong time now,
so just move the few remaining routines in misc_stub to emul.
2009-11-04 19:21:51 +00:00
pooka c03306bc0d Give the kthread->pthread interface emulation its own module. 2009-11-04 19:17:53 +00:00
pooka 8ec96b27ff trim trailing whitespace 2009-11-04 18:27:40 +00:00
pooka 8ef52102c2 Pull all relegating memory allocators under a common roof in memalloc.c 2009-11-04 18:25:36 +00:00
pooka 83dbe94e8b Implement yield()/preempt() now that there is a CPU scheduler. 2009-11-04 18:11:11 +00:00
skrll 4199642c5f Apply workaround for an ld bug which creates an empty .rel.dyn section. 2009-11-04 17:03:52 +00:00
pooka 080522e1ce move copy-related routines to their own module 2009-11-04 17:01:45 +00:00
pooka a69d555865 Use std. uiomove() & friends. 2009-11-04 16:55:20 +00:00
pooka fcc20a4ba1 Split uiomove() and high-level copy routines out of the crowded
kern_subr and into their own cozy home in subr_copy.
2009-11-04 16:54:00 +00:00
pooka ab72032a6c nuke unused local variable 2009-11-04 15:35:09 +00:00
toshii c8d10319f7 Don't return an error if the _PIC method isn't found.
It's an optional method and not found in kvm/qemu.
2009-11-04 14:39:17 +00:00
pooka 510038040b Use kern_mutex_obj.c directly instead of copypasting code. 2009-11-04 13:32:39 +00:00
pooka 83685e650c Heave-ho mutex/rwlock object routines into separate modules -- they
don't have anything to do with the lock internals.
2009-11-04 13:29:45 +00:00
hannken d35df7da38 Now that softdep has left the tree the only place needing the ffs_lock()
hack is ffs_sync().

- Use the generic lock operations for ffs.
- Change ffs_sync() to omit the vnode lock while suspending.

Reviewed by: Antti Kantee <pooka@netbsd.org>
2009-11-04 09:45:05 +00:00
jakllsch 9ae52821d4 Use hme_init() to provide a non-NULL ifp->if_init. 2009-11-03 22:06:30 +00:00
pooka 332ad24cfd Weak aliazeize usermount_common_policy() to uncouple rumpkern
linkage from rumpvfs once again after the secmodel changes.
(temp solution, should find a better one)
2009-11-03 20:25:31 +00:00
pooka 652a56fde0 Reorder enough of lwp/cpu initialization to have enough context
for pool/kmem init to work again with the stock versions (as opposed
to rump malloc relegations).
2009-11-03 20:22:33 +00:00
dyoung c64f34a1e5 Gracelessly bracket #include "opt_spldebug.h" with #ifdef i386.
Should fix the amd64 kernel-build failure that Andreas Wrede
reported.
2009-11-03 20:11:53 +00:00
pooka 341072b737 move module to SRCS where it logically belongs. no functional change. 2009-11-03 18:44:15 +00:00
pooka 2a63153751 regen: add AB_* macros 2009-11-03 18:23:15 +00:00
pooka ef8c3e068e include AB_* macros from reboot.h 2009-11-03 18:22:44 +00:00
pooka b32585a644 Add rump_boot_set/gethowto(), which can be called before rump_init()
to control .... *tadaa* boothowto.
2009-11-03 18:22:16 +00:00
thorpej c64f923f50 Restructure exception_return() a bit in preparation for some upcoming
changes.
2009-11-03 16:08:00 +00:00
cegger bed332fcc5 use proper type for memory protection bits 2009-11-03 13:14:50 +00:00
pgoyette 78b6b951fd Set iba_type properly. The only thing that ever looks at this is the
'options I2C_SCAN' code in dev/i2c/i2c.c which is disabled by default.
2009-11-03 12:51:56 +00:00
dyoung e48f8429d1 Add a kernel configuration flag, SPLDEBUG, that activates a per-CPU log
of transitions to IPL_HIGH from lower IPLs.  SPLDEBUG is only available
on i386 and Xen kernels, today.

'options SPLDEBUG' adds instrumentation to spllower() and splraise() as
well as routines to start/stop debugging and to record IPL transitions:
spldebug_start(), spldebug_stop(), spldebug_raise(), spldebug_lower().
2009-11-03 05:23:27 +00:00
dyoung 3d5b001d3f Add return_address(9) for reading the Nth return address from the call
stack.
2009-11-03 05:08:18 +00:00
snj 32381fa0dd Follow upstream license changes for files with Michael Shalayeff's
copyright.  In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
snj 0676449036 Drop 3rd and 4th clauses, as the copyright holder (Michael Shalayeff) did
in OpenBSD revision 1.39.
2009-11-03 01:23:21 +00:00
snj be288643d0 Drop 3rd and 4th clauses, as the copyright holder (Michael Shalayeff) did
in OpenBSD revision 1.2.
2009-11-03 01:19:35 +00:00
christos 6cd198d078 Handle RFC 5227 ARP probes properly, don't drop 0.0.0.0 source packets
silently. (Patrik Lahti <plahti at qnx dot com>)
2009-11-03 00:57:42 +00:00
dyoung fa8b0147c6 s/u_quad_t/uint64_t/. 2009-11-03 00:30:31 +00:00
dyoung bb960ead7a s/u_quad_t/uint64_t/ 2009-11-03 00:30:11 +00:00
dyoung 648f423c6f Make lockdebug_lock_print(NULL, ...) dump all locks. Now, in ddb,
'show lock 0x0' dumps all of the locks.

XXX I still need to fix 'show all lock'.
2009-11-03 00:29:11 +00:00
dyoung fe26b18dc7 Alphabetize. 2009-11-03 00:24:05 +00:00
christos e641795b86 adjust to dbcool_chipset. 2009-11-02 21:38:07 +00:00
christos 2365d83de9 don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg. 2009-11-02 21:37:44 +00:00
rmind b9a294cf04 - Move inittimeleft() and gettimeleft() to subr_time.c, where they belong.
- Move abstimeout2timo() there too and export.  Use it in lwp_park().
2009-11-01 21:46:09 +00:00
rmind 1ceff942e5 Move common logic in selcommon() and pollcommon() into sel_do_scan().
Avoids code duplication.  XXX: pollsock() should be converted too, except
it's a bit ugly.
2009-11-01 21:14:21 +00:00
rmind 2b261c7e05 rnd_sample_allocate_isr: pass correct flag to pool_get().
Should fix PR/39325.
2009-11-01 21:08:32 +00:00