Commit Graph

160981 Commits

Author SHA1 Message Date
xtraeme 059f68a935 In ENVSYS_SETDICTIONARY if sysmon_envsys_find() returns NULL, do not
call sysmon_envsys_release with a NULL argument.
2007-08-05 23:16:25 +00:00
xtraeme 09161dfd7a Repeat after me: %zu for size_t, %zd for ssize_t. Reminded by yamt@. 2007-08-05 23:05:02 +00:00
xtraeme 6e07b7e97b Use %zd to printf size_t. 2007-08-05 22:48:36 +00:00
pooka daafee8742 Introduce RUMPs - Runnable Userspace Meta-Programs
/sys/rump contains programs which run unmodified kernel code in an
emulated userspace environment.  The kernel environment is provided
by librump.  Currently supported are a number of file systems,
which by using puffs integrate seamlessly into the system and
provide a similar user experience to if the code was running as
part of the kernel.  Potential future rumpification targets include
for example parts of the networking stack and some device drivers.

This work was supported by Google Summer of Code 2007.
2007-08-05 22:28:00 +00:00
yamt 3c955ef258 lengthen timeout. i saw a server for which 10s was not enough. 2007-08-05 22:09:12 +00:00
yamt a67f31f445 remove nqnfs leftovers. 2007-08-05 22:06:14 +00:00
pooka c5653da5a1 install bsd.klinks.mk 2007-08-05 21:50:32 +00:00
pooka 9af4ce05d6 Split the part of bsd.kmod.mk which creates links to kernel header
directories into a separate module, bsd.klinks.mk.
2007-08-05 21:43:24 +00:00
ad c8a5b7d261 Fix traceback through interrupts. This isn't complete but at least it's
displaying useful output again:

db{0}> bt
cpu_Debugger(c1aa4800,c1aa8b1c,c1aa803c,1,c1aa48ec) at netbsd:cpu_Debugger+0x4
comintr(c1aa4800,cf38fc04,0,0,0) at netbsd:comintr+0x65c
DDB lost frame for netbsd:Xintr_ioapic_edge4+0xa8, trying 0xcf413ff4
Xintr_ioapic_edge4() at netbsd:Xintr_ioapic_edge4+0xa8
--- interrupt ---
--- switch to interrupt stack ---
cpu_idle(cf421e00,cf421e00,0,c0264950,cf421e00) at netbsd:cpu_idle+0x30
idle_loop(cf421e00,0,c01002d2,fbff,c01002d2) at netbsd:idle_loop+0x7a
2007-08-05 19:27:45 +00:00
rmind 2e1a7ade3c Sync the manual pages of workqueue(9) interface with the code.
/etc/rc.d/wizd start
2007-08-05 17:57:37 +00:00
macallan 3206de3f77 updates from David H. Gutteridge via PR36373 2007-08-05 16:25:03 +00:00
ad 474db80a05 Keep alignment small for _STANDALONE. 2007-08-05 14:56:10 +00:00
tron 956bb0b58f Remove entries for import of Postfix 2.3.5 and 2.4.1. Both have been
pulled up into the "netbsd-4" branch.
2007-08-05 14:27:08 +00:00
ad f81cdc19cf cpu_index doesn't need to be a cpuid_t, since it's a cardinal 2007-08-05 13:57:25 +00:00
jmmv f5d7807725 Add the __COPYRIGHT and __RCSID tags. 2007-08-05 13:52:44 +00:00
ad 5b2aca96b9 Current convention is to name/number objects after ci->ci_cpuid, so do
that when creating the kthreads. We may want to change this.
2007-08-05 13:47:25 +00:00
jmmv 348921e110 Move 'options FONT_VT220L8x16' to a common place for all kernels so that
the user needn't remember to add this option to get a font that is almost
identical (but fixed!) to the built-in one.
2007-08-05 13:37:31 +00:00
yamt 5621cabda9 add cpuctl.debug. 2007-08-05 12:46:02 +00:00
ad 17be89c2d5 - trace_enter/trace_exit/ktrace don't need kernel_lock.
- Use a RISC-style copyin optimised for pulling system call arguments.
  In tests I have done on Intel hardware this removes any measurable
  advantage to passing the syscall arguments in registers.
2007-08-05 10:56:52 +00:00
ad ebb5b4b828 Don't rely on the ci_self150 hack. 2007-08-05 10:51:03 +00:00
ad 9d841d6e31 - Remove crud.
- Don't use the ci_self150 hack.
2007-08-05 10:50:26 +00:00
tron c00e7b9809 Remove entry for recent mpt(4) changes because they have been pulled up. 2007-08-05 10:29:05 +00:00
pooka 4d42eff4e1 In uao_get(), drop object lock only after dropswap to avoid KASSERT panic.
Should fix tmpfs problem reported by riz on current-users.  yamt ok.
2007-08-05 10:19:23 +00:00
ad 2818ab2bd1 - Align assembly routines on 32-byte boundaries.
- Don't bother doing anything special for CPUVAR() when !MULTIPROCESSOR.
2007-08-05 09:56:48 +00:00
yamt 1f0f803e45 use kpause rather than lbolt. 2007-08-05 09:40:39 +00:00
dsieger 8438931b2b From Zafer Aydogan: Fix a typo: s/distination/destination/ 2007-08-05 09:31:24 +00:00
macallan 0591adcde1 fix another typo, now wsfb on ofb should work properly 2007-08-05 04:36:18 +00:00
macallan 84b4b152a9 fix typo - fbsize is /height/ * stride. Doh. 2007-08-05 03:23:02 +00:00
rmind c8c024369c Improve per-CPU support for the workqueue(9):
- Make structures CPU-cache friendly, as suggested and explained
   by Andrew Doran.  CACHE_LINE_SIZE definition is invented.
 - Use current CPU if NULL is passed to the workqueue_enqueue().
 - Implemented MI CPU index, which could be used as an index of array.
   Removed linked-lists usage for work queues.

The roundup2() function avoids division, but works only with power of 2.

Reviewed by: <ad>, <yamt>, <tech-kern>
2007-08-05 01:19:17 +00:00
rmind f6bcdcfe0c Forgot to mention import of TCP socket buffers autosizing.. 2007-08-05 00:21:58 +00:00
jnemeth 1c35d39ad7 PR/36732 - Jim Bernard -- delete /usr/libexec/uucp/uucico from list of shells 2007-08-05 00:10:37 +00:00
macallan 42284ad7c0 add shadow fb support
now genfb is actually usable even on slow PCI framebuffers. Yay Jared :)
2007-08-04 23:51:37 +00:00
ad 7fef85939a Note libpthread changes. 2007-08-04 23:30:05 +00:00
tron 2a7b5e659f Fix some KNF glitches pointed out by Garrett D'Amore. 2007-08-04 22:01:06 +00:00
tsutsui 72e8fd4495 Make clockintr() return 1 since it's always handled so that
clock interrupt is properly acounted by evcnt(9) in isa_irq.S.
2007-08-04 20:14:21 +00:00
kristerw d0d36b6101 Update includes so that this builds for USE_FORT=no too. 2007-08-04 19:37:52 +00:00
ad 7bf06aa722 Make libpthread_dbg build again. 2007-08-04 18:54:12 +00:00
degroote bc4183bb27 Call wpi_stop at the beginning of wpi_init so we are sure that wpi is really
stopped (in particular interrupt are disabled).
2007-08-04 18:24:24 +00:00
tsutsui 79f82cdd0a Fix a typo in a debug printf message. 2007-08-04 16:31:21 +00:00
reed 3a6e61c6ab Remove "that" from a long calendar entry that wrapped over two lines.
While there remove a "that" from another entry too.
2007-08-04 15:14:05 +00:00
ad 15c28fd2d8 Update. 2007-08-04 13:46:04 +00:00
ad a014cf23cb Fix error in previous. 2007-08-04 13:43:46 +00:00
ad 50fa8db4e4 Some significant performance improvements, and a fix for a race with pthread
detach/join.

- Make mutex acquire spin for a short time, as done with spinlocks.
- Make the number of spins controllable with the env var PTHREAD_NSPINS.
- Reduce the amount of time that libpthread internal spinlocks are held.
- Rely more on the barrier effects of park/unpark to avoid taking spinlocks.
- Simplify the locking around pthreads and the global queues.
- Align per-thread sync data on a 128 byte boundary.
- Offset thread stacks by a small amount to try and reduce cache thrash.
2007-08-04 13:37:48 +00:00
tsutsui b108f67c05 TAB/space cleanup. 2007-08-04 13:00:45 +00:00
tsutsui fe3cdffb4a Add ci_cpuid where it's missing. 2007-08-04 12:53:31 +00:00
jnemeth cd27c0d793 PR/36370 - Lloyd Parkes -- pckbd.fr_CA-iso8859-1 does not have share tag 2007-08-04 12:41:59 +00:00
ad c3085c5fd6 A quick hack to get things building again. Don't refer to curlwp
if !MULTIPROCESSOR.
2007-08-04 11:57:54 +00:00
ad 51d21a15b2 Note cpuctl(8). 2007-08-04 11:40:58 +00:00
ad 18af8ee9bd Add cpuctl(8). For now this is not much more than a toy for debugging and
benchmarking that allows taking CPUs online/offline.
2007-08-04 11:02:56 +00:00
ad e4f6da7b0c Mark the SysV semaphore syscalls MP safe. 2007-08-04 10:52:57 +00:00