174111 Commits

Author SHA1 Message Date
pooka
bbce087e33 include prerequisite headers 2008-10-10 09:44:35 +00:00
hannken
44f3404f57 Break a deadlock where one thread has a wapbl transaction, calls VOP_GETPAGES
and wants to busy a page  while  another thread calls VOP_PUTPAGES on the same
vnode, takes pages busy and wants to start a wapbl transaction.

Reviewed by: Jason Thorpe <thorpej@netbsd.org>
2008-10-10 09:21:58 +00:00
ad
6f7d0483cf pthread_attr_getschedparam: allow without preceding setparam on the
attr structure.
2008-10-10 09:13:20 +00:00
njoly
2c98237db9 Fix linux32 siginfo si_signo value. Do not convert ksi_signo twice. 2008-10-09 23:03:45 +00:00
pooka
a868d2c97b add kern_rate, subr_iostat and subr_once 2008-10-09 21:30:06 +00:00
pooka
f3efa1ae96 Reorganize SRCS+= into smaller chunks to make adding new files
easier.  No functional change.
2008-10-09 21:25:50 +00:00
pooka
f88be1435b Rewrite interrupts to provide better softintr support, i.e. not
execute them simply in the context of the scheduling code, as this
does not work for all applications (e.g. networking soft interrupts).
Rather, schedule them and execute them from a separate context.

Also provide a timer which for now executes just hardclock_callout()
(well, at least after callouts are included in librump, which is
soon).
2008-10-09 19:40:52 +00:00
plunky
9d1b0b09fa set if_addrlen = 0 when attaching, as no link layer address is actually set
this fixes a problem where ifconfig will fail as it can't find
the address
2008-10-09 19:18:15 +00:00
wiz
89cc13767c Sync usage with man page. 2008-10-09 18:38:24 +00:00
wiz
104f1a2c29 Standardize. 2008-10-09 18:32:08 +00:00
pooka
d22cdb027a No point in having our private atomic ops, just use the ones now
available in libc.
2008-10-09 17:58:33 +00:00
christos
59334248e2 Disable userid to username lookups by default. Add a -U flag to perform them.
In single user mode lookups that involve the network might not work and they
slow down fsck.
2008-10-09 16:56:23 +00:00
tteras
ab610e81be Fix a spelling mistake in changelog 2008-10-09 16:44:31 +00:00
tteras
52d4b7db25 From Arnaud Ebalard: remove unnecessary unbindph12() call which is now done in remph2() 2008-10-09 15:53:12 +00:00
tteras
c724d51982 From Arnoud Ebalard <arno@natisbad.org>:
remove unnecessary unbindph12() call which is now done also in remph2()
2008-10-09 15:53:11 +00:00
christos
c6070f6f5a Avoid allocating 2 x inospace and use realloc instead. This also saves a
large memcpy.
2008-10-09 15:50:46 +00:00
christos
9e0fa13510 PR/39719: Edgar Fu: block/inode typo in quotacheck(8) 2008-10-09 14:56:35 +00:00
christos
b30f2079e1 remove "limits" where it is not appropriate. 2008-10-09 14:40:11 +00:00
christos
ff1eb234c1 do the proper ifdef dance for non-inet families 2008-10-09 14:38:21 +00:00
joerg
281bbad379 Explicitly check that the dump device is not the console, a tty or pty.
While the list is adhoc, the problems reported are always with
/dev/console. Adresses PR 38425 and similiar issues with Xen.
2008-10-09 13:59:50 +00:00
pooka
c453d67e49 Compile all rump kernel portions with -DMULTIPROCESSOR. 2008-10-09 13:40:38 +00:00
pooka
25a1a46f4b Unsupport ltsleep() called with an interlock. Not that it was
really supported before either, since without MULTIPROCESSOR it's
just a nop.
2008-10-09 13:39:59 +00:00
pooka
287270f554 Bump virtual page shift from 10 to 12. Otherwise the mbuf generating
macros fail to operate properly due to M_EXT_MAXPAGES being too
large and hence struct _m_ext being over MSIZE already by itself.
2008-10-09 12:34:36 +00:00
pooka
6dbf67cea1 Atomic ops are unnecessary here. pointed out by ad 2008-10-09 12:14:06 +00:00
pooka
8ffd7b368a document libraries in rump/net/lib 2008-10-09 11:50:08 +00:00
pooka
4f5067919f 4.99.73: once_t changed 2008-10-09 11:02:17 +00:00
pooka
225570303b Rewrite once to use global locks and atomic ops to get rid of the
static simplelock initializer (and simplelock too).  The fastpath
is still lockless, so doesn't make a difference in terms of
performance.

Also fixes a hanging bug if the once routine returned an error.
It does not retry after an error occurs, as I can't really imagine
fruitful semantics for that.
2008-10-09 10:48:21 +00:00
pgoyette
691525189c It's not necessary to #include "sysmon_envsys.h" any more. 2008-10-09 10:25:47 +00:00
dholland
3251535c47 Avoid memory leak in error case. From Gao Ya'nan in PR bin/39721. 2008-10-09 07:18:15 +00:00
pgoyette
65d9dac7ee sc->sc_parent was removed because it was never used, so don't bother
trying to set it.
2008-10-09 03:11:29 +00:00
pooka
02100cd42d Wrap potentially blocking operations to drop and retake the kernel
giant lock.
2008-10-09 01:19:06 +00:00
pooka
01f8a524d4 Rewrite kernel lockus maximus handling to be correct. 2008-10-09 01:17:48 +00:00
pooka
ae509fabab Use atomic op to get next xid. Initialize value with arc4random()
at nfs init time instead system time based trickery intermingled
with the runtime code.

le bouef: kills last simple_lock from nfs
2008-10-09 00:11:39 +00:00
pooka
fb58d5d6ec #error if WABPL_DEBUG_INODES is defined. That code has bitrotted
more than casu marzu cheese.
2008-10-08 22:58:56 +00:00
joerg
14f73bd778 Move functionality for preparing the kernel (including XMS support) into
a new function common_load_kernel.
2008-10-08 22:57:28 +00:00
joerg
fb462122c2 Move initialisation of boot_argv after the full loading of the kernel,
directly before loading modules.
2008-10-08 22:46:19 +00:00
joerg
2230e7f0d7 Setup module_base in module_init(). 2008-10-08 22:42:38 +00:00
oster
c68af69bbe Need to include sys/termios.h here too. 2008-10-08 16:11:23 +00:00
oster
6664ee6283 memset to zero the entire nop_in structure. Fixes PR#39688 by
Henning Petersen.  Thanks!
2008-10-08 14:58:57 +00:00
christos
f9657a08ed return ENOTTY instead of EOPNOTSUPP for ioctl(/dev/null, TIOCGETA)
from Andy Shevchenko
2008-10-08 14:42:56 +00:00
pooka
ea7f1c6709 check return value of rump_init() 2008-10-08 11:01:28 +00:00
ad
8572b64ab0 Clarifications for PTHREAD_DIAGASSERT. 2008-10-08 10:11:11 +00:00
ad
6ca270975e pthread_diagassert is now off by default. 2008-10-08 10:06:52 +00:00
ad
beaa63b638 Disable diagnostic assertions by default and just return error codes like
other systems. Allows poorly written applications to appear working. If you
are developing pthread apps please turn it on manually by setting the
environment variable.
2008-10-08 10:03:28 +00:00
agc
7117be69ce Fix a fairly obvious pasto which has been there since version 1.1 in 2001. 2008-10-08 09:45:47 +00:00
ad
fdc51b51d9 Adjust the compat stuff slightly so that the changes are mostly self
contained (Makefile, pthread_compat.c).
2008-10-08 08:27:07 +00:00
lukem
a1e399536b WARNS=4 2008-10-08 03:55:18 +00:00
lukem
e9415a55f8 use a const struct hash pointer 2008-10-08 03:55:05 +00:00
pgoyette
fc071384c8 Since I nuked the old adt7467c driver, I might as well nuke the man page. 2008-10-08 01:15:11 +00:00
pooka
f4ce96e86b check rump_init() return value 2008-10-07 23:22:05 +00:00