Commit Graph

165579 Commits

Author SHA1 Message Date
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
martti
7e40665ceb Fixed indentation, it should be
option<space><tab>
makeoption<space><tab>
2008-01-07 08:39:03 +00:00
martti
a678f921c8 Fixed option indentation, it should be
option<space><tab>
makeoption<space><tab>
2008-01-07 08:30:03 +00:00
apb
74bc6bcb6f Add more detail in comments about maximum size of environment and
arguments passed by xargs(1) to execvp(2).  Research done while
investigating PR 37666, which is not a problem in -current.
2008-01-07 08:20:52 +00:00
dyoung
73b30d3cfe Define some "special" values of register MMCR_WPVMAP. 2008-01-07 08:01:45 +00:00
dyoung
40fec83596 Delete unused mips_ipl_si_to_sr[]. 2008-01-07 07:28:14 +00:00
dyoung
cb1ed32e14 Update AR5312 interrupt masks along the same lines as the AR5315. 2008-01-07 07:14:37 +00:00
dyoung
b82c6f8442 Cosmetic: re-number the comments on elements of ipl_sr_bits[]. 2008-01-07 07:12:06 +00:00
dyoung
189256ad32 Make this compile again by making changes similar to the changes
that ad@ made to arch/mips/alchemy/au_icu.c.  Compiles and runs,
but this probably deserves a looksie by someone with more MIPS
clue.
2008-01-07 06:55:32 +00:00
dyoung
b82e361f77 Use pmf(9). Use device_t and device_private(). 2008-01-07 06:53:08 +00:00
tnn
303f9ebb5b Make the ACPI_MADT_DEBUG code compile again. 2008-01-07 06:04:07 +00:00
tnn
51f964a289 softdep_freefile: don't acquire ufsmount lock twice. 2008-01-07 05:20:25 +00:00
uwe
e97e9077cc Note landisk import date. 2008-01-07 05:02:38 +00:00
uwe
f38b1e35de Now that sh3 has didicated interrupt stack we can check for cpu_intr_p
with simple sp comparison, so we can drop ci_idepth.
2008-01-07 05:00:12 +00:00
uwe
b786c078f9 Add endif comment for __HAVE_FAST_SOFTINTS. 2008-01-07 04:43:54 +00:00