Commit Graph

190870 Commits

Author SHA1 Message Date
rmind 6bf9a07036 execve1: move few PNBUF_PUT() outside the lock paths. 2010-05-12 03:40:38 +00:00
matt 677688bd7f Make sure the softint lwp runs at IPL_HIGH. 2010-05-12 01:58:22 +00:00
haad 6af3749398 Add support for kthread_join in our kernel thread implementation. This is used
by zfs but I think that it can be generaly usefull. Thread need to be created
with KTHREAD_JOINABLE flag and can be joined only once.
When joinable thread was created it will not e automatically reaped from system
and kthread_join must be called on it to reap it.

Ok by ad@.
2010-05-11 22:26:00 +00:00
pooka 1616addc6a Actually, push defining _RUMPKERNEL down to libkern, since it's
not needed elsewhere.
2010-05-11 22:21:05 +00:00
haad 04d9252504 Fix userspace cv_timedwait implementation to work on NetBSD. 2010-05-11 22:18:10 +00:00
pooka 2b801a94d6 fix typo 2010-05-11 21:50:35 +00:00
pooka d3280f90bc Limit visibility of _RUMPKERNEL to prevent abuse. 2010-05-11 21:08:07 +00:00
pooka 65972a0f32 add __HAVE_CPU_COUNTER stubs where possible (i.e. where the arch
doesn't think inlines are the second compiling)
2010-05-11 21:03:41 +00:00
pooka af6d218fe8 Test for barebones rump network config (i.e. just rumpnet and kernel base). 2010-05-11 20:36:04 +00:00
pooka 17bb799409 adjust comment in previous.
XXX: should make that (and physmem) mean something here
2010-05-11 20:25:14 +00:00
pooka a96791040e remove unnecessary #ifdef 2010-05-11 20:21:56 +00:00
pooka 7e3cbd3f20 regen: _RUMPKERNEL -> _KERNEL 2010-05-11 20:11:47 +00:00
pooka 14d288df20 _RUMPKERNEL -> _KERNEL 2010-05-11 20:09:11 +00:00
pooka b2cb120dee This not working on ews4800mips has nothing to do with rump, so:
_RUMPKERNEL -> _MACHINE != ews4800mips
2010-05-11 20:07:40 +00:00
mbalmer b873861680 Fix YOW entry while I am here... 2010-05-11 18:34:37 +00:00
mbalmer f782664b92 Language fix: upto date -> up to date. 2010-05-11 18:27:04 +00:00
pooka 27d01ae5b3 Cache directory entry name length. This brings kernel bootstrap
time down: 14ms -> 12ms.  Further hashing etc. did not seem to have
any noticable effect.
(without /dev node creation bootstrap time is 8ms, so it's still
the bottleneck)
2010-05-11 16:59:42 +00:00
dyoung 836575cf65 Cosmetic: remove superfluous parentheses from return statements. Don't
test truth of pointers, or compare with 0, but compare with NULL,
instead.

The compiler generated the same assembly language before & after this
change.
2010-05-11 16:49:35 +00:00
mbalmer c10c30d557 Correctly spell 'acknowledged'.
Found by Christian Brueffer.
2010-05-11 16:17:18 +00:00
pooka 6e2452d938 Initialize p_pgrp when creating a new process structure (and not
only for proc0).  This makes something work.  I just can't remember
what it was anymore.
2010-05-11 14:57:20 +00:00
pooka 7037dbf8d5 Set default number of vnodes to 1k instead of 64k: a large default
reserves a large amount of memory by default and this is not
desirable in a rump kernel where the typical usage is minimal.
Maybe I should write a few lines to autoscale desiredvnodes up to
a hard limit after the soft limit is reached?
2010-05-11 14:49:07 +00:00
pooka 2315e5705a Fix reclaim locking so that we don't attempt lock reentry if making
a new rumpfs vnode triggers a reclaim for a rumpfs vnode.
2010-05-11 14:42:24 +00:00
pooka 484a50b1cb uvm_object_printit() should be wrapped in DEBUGPRINT 2010-05-11 14:06:08 +00:00
nonaka a69ab5bf09 Add SSP SSSR register definitions. 2010-05-11 13:23:09 +00:00
pooka c33b4c9a6b update slightly 2010-05-11 11:58:14 +00:00
nonaka ab17339c43 Added some CKEN_* definition for pxa270. 2010-05-11 11:28:47 +00:00
tsutsui 3a09116b96 Sync with md.h rev 1.17:
> convert sparc64 to MULTIPROCESSOR kernel by default, and introduce
> s/MP/UP/ kernels were otherwise in place.
2010-05-11 09:46:46 +00:00
pooka ed541767a0 drop silly backronym. just rump. 2010-05-11 09:45:59 +00:00
pooka 5fd51e5ff8 the crowd went crazy
as typo left the stage
2010-05-11 09:30:29 +00:00
pooka 14a8ac5592 Reclaim spec-type vnodes properly. 2010-05-11 09:28:40 +00:00
njoly 5c2b1bfba9 Fix some typos in comments. 2010-05-11 09:08:12 +00:00
lukem 37c82b82e2 libalpha.so.0.0.debug 2010-05-11 06:20:00 +00:00
joerg 4a30c591eb Fix indentation 2010-05-11 02:34:39 +00:00
macallan 49fb250a32 use RI_NO_AUTO for the gdium's early rasops console so we don't try to
allocate memory before kmem is ready
2010-05-11 01:38:14 +00:00
jnemeth ee8753142e Fix tunnelling (ssh -w). The kernel expects a device to be passed
to the socked, not a path.
2010-05-10 20:28:05 +00:00
dyoung 19265b4bb9 Provide pmap_enter_ma(), pmap_extract_ma(), pmap_kenter_ma() in all x86
kernels, and use them in the bus_space(9) implementation instead of ugly
Xen #ifdef-age.  In a non-Xen kernel, the _ma() functions either call or
alias the equivalent _pa() functions.

Reviewed on port-xen@netbsd.org and port-i386@netbsd.org.  Passes
rmind@'s and bouyer@'s inspection.  Tested on i386 and on Xen DOMU /
DOM0.
2010-05-10 18:46:58 +00:00
tsutsui 6ea92ed1bd Add WZERO3 kernel to MD kernel set menu for
possible newer users of these smartphones:
http://www.willcom-inc.com/ja/lineup/ws/004sh/
http://www.willcom-inc.com/ja/lineup/ws/007sh/
http://www.willcom-inc.com/ja/lineup/ws/011sh/
etc.

XXX: sysinst/util.c:init_set_status() calls md_init_set_status()
XXX: to allow MD hook choose the right kernel, but it can do nothing
XXX: because set_status[] was changed to static. Is it okay to export it?
2010-05-10 16:33:45 +00:00
sjg 21d8983546 PrintOnError: run .ERROR last, so even if it causes problems we
still print MAKE_PRINT_VAR_ON_ERROR.
2010-05-10 15:54:21 +00:00
joerg 0513806c62 Kill a left-over break from the for-loop that vanished in 1.13.
Issue noticed by tnn.
2010-05-10 15:45:22 +00:00
tsutsui 8aad094f00 Include <bsd.own.mk> before ${NETBSDSRCDIR}. 2010-05-10 15:10:54 +00:00
mrg d4586f7382 merge 20100510 properly 2010-05-10 14:53:17 +00:00
mrg a07e0db33b merge bozohttpd 20100510. 2010-05-10 14:44:19 +00:00
tsutsui 8f5dd48f26 Make this compile on sparc64. 2010-05-10 14:33:21 +00:00
kiyohara f8bb8301ce Use kmem(9) instead of malloc(9). 2010-05-10 12:17:32 +00:00
matt c6547b8190 Regen. 2010-05-10 06:39:30 +00:00
matt e8d2d48044 Add MARVELL 88SB2211 PCIe-PCI bridge 2010-05-10 06:38:45 +00:00
haad c84b9426dd Disable building of stub_stand.c we build all locking primitives in libzpool. 2010-05-10 06:27:57 +00:00
haad 0fbd0bfd4f If thread_create was called with thread_id = NULL use our local thread id
as replacement otherwise we will crash.
2010-05-10 06:26:11 +00:00
haad 4296646a10 Fix spa_thread to compile under the NetBSD. 2010-05-10 06:15:28 +00:00
haad fd29a8703f Get new vnode when creating zfs share dir for it's znode. 2010-05-10 06:10:59 +00:00