Commit Graph

165793 Commits

Author SHA1 Message Date
joerg
05379725b5 lock_stubs.S needs assym.h. 2008-01-08 12:17:32 +00:00
joerg
71990d8d21 ANSIfy. 2008-01-08 12:05:49 +00:00
simonb
99cad24ec6 GC this file - it should have been removed during the ppcoea-renovation
merge.
2008-01-08 11:54:47 +00:00
xtraeme
5fbecc2c56 Fix date for the tprof entry. 2008-01-08 09:29:22 +00:00
he
943b531346 Remove a no-longer-used local variable. 2008-01-08 07:59:23 +00:00
matt
e1adc2881b Add IPL_SOFT* defined at IPL_NONE.
Change _ARM32_INTR_H to _ACORN32_INTR_H
2008-01-08 06:30:22 +00:00
matt
306d43c5bf Remove unused variable. 2008-01-08 06:29:39 +00:00
matt
6d2503c7a9 Don't do arithmetic on void pointers. 2008-01-08 06:28:29 +00:00
dyoung
e0b21313b6 In device_foreach_child(), use a safe idiom for walking a list
whose elements we might be deleting.  This stops us from crashing
in config_detach_children().
2008-01-08 06:27:46 +00:00
matt
2414d5854f Make sys_swapctl match syscallargs.h 2008-01-08 06:25:55 +00:00
dyoung
b202d18acd Use aprint_*_dev(), device_xname(), and device_t. Join a line. 2008-01-08 04:47:44 +00:00
ginsbach
05d6614378 Fix PR/37710. Correct botched test result. This lead to an erroneous
regression failure.
2008-01-08 03:49:01 +00:00
dyoung
f384d52f35 Delete an unnecessary cast. 2008-01-08 03:37:45 +00:00
matt
6bc0c58216 As of this commit, all arm32 kernel now build. 2008-01-08 02:07:50 +00:00
matt
f4f1c6c970 More kernels SYMTAB_SPACE increased. 2008-01-08 02:06:43 +00:00
matt
04a4a202ed include "conf/std" 2008-01-08 02:05:30 +00:00
uwe
71fc6881ec In general_exception() in do_panic case print error message *before*
we drop into ddb.
2008-01-08 01:25:13 +00:00
gdt
1424adf410 Support FIONBIO.
Support non-blocking reads from USB printers.  With this, escputil can
query the printer model, and I can print a test page with gutenprint
5.1 and cups.   Add many comments explaining why the support is not
quite right.  (This change is quite a bit less invasive than a
"correct" fix, and thus more reasonable to pull up to netbsd-4.)

Rototill debugging, so that all DPRINTFN have a level, and so that the
message is printed if the debug level is >= the number in the source
code.  Document debug level plan.

Fix bug where only one status change would be printed (by inspection,
not tested).

Document scheme for reading/discarding data when ulpt(4) is opened for
write only.

Delete dead code.

Plan and patch posted on tech-kern without objections.
2008-01-08 00:58:09 +00:00
ad
c0187a5323 pmap_destroy: cast return of atomic_dec_uint_nv to (int) to avoid leaking
pmaps. The refcount can be zero due to pmap_remove_all. Problem found by
tnn@.
2008-01-08 00:45:23 +00:00
pooka
72b3924d8b Set stacksize to minimum acceptable (two pages, one for cc, one
for actual stack) to mimic kernel stack size better.
2008-01-08 00:23:15 +00:00
pooka
1309a27c5e liberate gas-huffin crack-puffin' assert 2008-01-08 00:22:31 +00:00
elad
964f16c2b9 Make fork use kauth.
Been running in my tree for over a month at least.

Reviewed and okay yamt@, and special thanks to him as well as rittera@
for making this possible through fixing NDIS to not call fork1() with
l1 != curlwp.
2008-01-07 23:51:06 +00:00
dsl
0b5d0f6802 Actually copy the ras list onto the child process during fork() - hi ad.
Might fix the 'ras' part of kern/37650.
For some reason the itimers aren't inherited either.
2008-01-07 20:56:32 +00:00
ad
574389c2a0 Fix build if !MODULAR. Reported by elad@. 2008-01-07 20:42:48 +00:00
rittera
c22be27a3d Added elad's changes to ndis_kthread_create. Setting the stack size in fork1 apparently has no effect in the kernel. Note: needs testing 2008-01-07 19:10:58 +00:00
drochner
c654774bb6 tcpdump/libpcap are at 3.9.8/0.9.8 now 2008-01-07 18:27:16 +00:00
ad
b7dafc15be Don't both about module name / ksyms until the name is known for sure. 2008-01-07 18:25:56 +00:00
joerg
e47a5502a7 Use gettimeofday as timecounter. 2008-01-07 17:27:12 +00:00
joerg
0a53bb0b5b x86 always has timecounter support. 2008-01-07 16:58:09 +00:00
ad
52603a7d6d Fix 'panic: softdep_update_inodeblock: update failed'. 2008-01-07 16:56:27 +00:00
joerg
ebd253a526 Garbage collect !__HAVE_TIMECOUNTER code. 2008-01-07 16:55:15 +00:00
christos
2937b71b26 Add PaX ASLR for testing 2008-01-07 16:46:59 +00:00
joerg
7e82e3084b Timecounter support for VAX. Basic testing in simh done on a backported
version to netbsd-4.
2008-01-07 16:40:16 +00:00
ad
72506c7508 Regen. 2008-01-07 16:16:38 +00:00
ad
fe8aceeb5e More MPSAFE syscalls. 2008-01-07 16:15:36 +00:00
ad
8b52263cd1 Hold kernel_lock across IFNET_FOREACH(). 2008-01-07 16:13:49 +00:00
ad
77e0b2120f Patch up sysctl locking:
- Lock processes, credentials, filehead etc correctly.
- Acquire a read hold on sysctl_treelock if only doing a query.
- Don't wire down the output buffer. It doesn't work correctly and the code
  regularly does long term sleeps with it held - it's not worth it.
- Don't hold locks other than sysctl_lock while doing copyout().
- Drop sysctl_lock while doing copyout / allocating memory in a few places.
- Don't take kernel_lock for sysctl.
- Fix a number of bugs spotted along the way
2008-01-07 16:12:52 +00:00
christos
0c134a3f67 Fix -D option, from Jukka Salmi 2008-01-07 16:10:57 +00:00
ad
eb4920235a Don't drop vnode refs until we are done with the mount. 2008-01-07 16:08:46 +00:00
apb
ee83c29560 Disable parallel make, because the interaction between the
$(am__ELCFILES) and elc-stamp targets is extremely unfriendly to
parallel make.   More details in a comment in the file.
2008-01-07 15:17:04 +00:00
tsutsui
2b341ae01b Add timecounter(9) support for mvme68k.
Based on a patch from Garrett D'Amore and several tweaks by me.
Compile tested only, but reviewed by joerg@ and
no objection from scw@ on port-mvme68k.
2008-01-07 14:39:28 +00:00
joerg
7f4f83c80c Shared clock.c with amiga, so it supports generic time counter. 2008-01-07 13:55:36 +00:00
jmcneill
a62d13ab5f acpica 20071219 is out; note that we are now at 20070320 2008-01-07 13:25:58 +00:00
ad
a32939fca4 bwrite, bdwrite: bufcache_lock must be held for reassignbuf. 2008-01-07 12:50:38 +00:00
ad
297c776822 Make VFS_SYNC() and friends functions, and have them acquire kernel_lock
if the FS is not marked MPSAFE.
2008-01-07 12:34:12 +00:00
njoly
e5e170b198 Regen. 2008-01-07 12:12:12 +00:00
njoly
0dbd478087 Remove wrong linux32_sys_mmap2_args define. 2008-01-07 12:11:52 +00:00
yamt
48a1e4cf46 pthread_curcpu_np: map LWPCTL_CPU_NONE to 0 so that this works in the case
of _lwp_ctl failure.
2008-01-07 11:51:43 +00:00
yamt
2e8a5bee68 lwp_ctl_alloc: fix error handling. 2008-01-07 11:41:29 +00:00
simonb
cfde7482cd Actually return the computed uptime in microuptime(). Fixes many
wierd timing issues on non-timecounter ports (tested on sbmips, and
omap ARM by Marty Fouts).

Also move the microtime() inside the splclock() block in the same
function - it may be possible for the "time" variable to be updated
after the call to microtime() but before we use it to calculate the
offset from mono_time.
2008-01-07 10:28:07 +00:00