Commit Graph

176079 Commits

Author SHA1 Message Date
martin 9cd0cde30f bump version due to recent rootfs changes 2008-12-21 11:39:56 +00:00
ad 68c33f6d28 Fix a comment. 2008-12-21 11:18:19 +00:00
martin 827c9991f2 Set an apropriate locale depending on the selected language.
This does not realy change anything in the crunched version, but helps
debugging foreign languages and will magically start working once we
un-castrate locales in the crunched environment.
2008-12-21 11:02:41 +00:00
ad c63481baaa Print a warning message and return EOPNOTSUPP if the user tries to enable
quotas on a file system that is using logging.
2008-12-21 10:48:10 +00:00
ad 83f7350f6d PR kern/40210 5.0 BETA WAPBL related crash 2008-12-21 10:44:32 +00:00
dsl d003f8f69b Don't allow $) $} $: or $$ as variable expansions, they confuse other
parts of make that try to scan through variable expansions.
  (given the make syntax that is all rather doomed anyway!)
Move the check for $\0 to a place where it will be detected - otherwise
  the parser will run off the input buffer!
2008-12-21 10:44:10 +00:00
ad e486cbc29c -Kernel preemption is currently disabled by default.
-It can be enabled by tweaking kern.sched.kpreempt_pri sysctl.
+On architectures where kernel preemption is not supported natively, these
+functions may still be used.
2008-12-21 10:32:56 +00:00
ad c3d0770eca -If non-zero, DDB will be entered when the kernel panics.
+If non-zero, DDB will be entered if the kernel panics.
2008-12-21 10:30:08 +00:00
ad ff0249c394 Prevent a potential deadlock from a multithreaded process doing:
t1	dup2(0, 1)
t2	dup2(1, 0)
2008-12-21 10:25:00 +00:00
ad 7ca206492d Don't try to sync if panicing:
- It doesn't work and a dead system that can't be reset from the console is
  worse than a system that has painced and rebooted. If you can make it work
  reliably please do so.

- If the system is paniced there is every reason to suspect VM structures
  and the contents of the buffer cache.
2008-12-21 10:23:10 +00:00
ad 6d599f4e1f - Fix a bug where we trashed descriptor zero in the old open files array
while ironically trying to preserve the same during copy. Would only have
  occurred if a multithreaded program expanded the descriptor table and,
  within a tiny window of exposure, another thread in the program tried to
  access descriptor zero.

- Convert to use kmem_alloc/kmem_free.
2008-12-21 09:58:22 +00:00
isaki 1c83836352 Clean up a header file and a prototype. 2008-12-21 09:35:49 +00:00
isaki 9df38ebbda par(4) is a child of intio(4) (since 2000). 2008-12-21 09:24:27 +00:00
isaki 0256607d6d Take out mainbus(4)-related code from autoconf.c and make it mainbus.c. 2008-12-21 09:20:40 +00:00
isaki 06cefe4345 Make sram(4) a hardware device.
# I wrote this in 2001 :-)
2008-12-21 09:01:19 +00:00
isaki cf93dcf794 Remove an old comment (about amiga?). 2008-12-21 06:16:06 +00:00
isaki ba2a85174a - Split idepth from INTERRUPT_*REG macros to avoid confusing.
- timertrap: add idepth stuff, and use INTERRUPT_*REG macros.
- lev7intr: add idepth stuff.
2008-12-21 06:13:06 +00:00
isaki 4588c4222e Remove extiobase. x68k does not use it. 2008-12-21 06:04:49 +00:00
christos c3145881d1 trap in subshell 2008-12-21 03:15:53 +00:00
christos ae1cc09549 PR/36079: M. Levinson: Disable the optimization of not forking for the last
command in a subshell, otherwise we miss the exit trap.
2008-12-21 03:15:32 +00:00
christos f97bdef169 PR/11228: Ben Harris: Unexpand -t should take tab list. Based on patch
supplied by Roy Marples.
2008-12-21 02:33:13 +00:00
haad cca8fb31f9 Add support for loading dm targets as separate modules. All targets except
linear can be loaded as module. Module is not loaded when there is target
with similar name already. Zero and error targets aresimple examples how
can be all future targets written to support dynamic loading. Target can't
be unloaded until there is at least one user.
2008-12-21 00:59:39 +00:00
haad 38805eb14c Fix error path in target_init call. When initializing target fails i have
to release table before I try to destroy it and I haveto unbusy device, too.
2008-12-21 00:53:27 +00:00
christos dab49f36c7 add regression tests for stuff recently fixed. 2008-12-21 00:24:06 +00:00
christos 9ac082db6c PR/35055: Wada Keiji: wait did not keep the status of terminated jobs as
expected.
2008-12-21 00:19:59 +00:00
ad 82ae73e0b6 Don't increment the 'kpreempt defer: IPL' counter if a preemption is pending
and we try to process it from interrupt context. We can't process it, and
will be handled at EOI anyway. Can happen when kernel_lock is released.
2008-12-20 23:06:14 +00:00
dsl 899813caea Add functions for processing extendable arrays of pointers to strings.
Use for the .for variables and substution items - changing the latter from
make's all conquering lst.lib functions.
Being able to index everything makes the code simpler.
No functional changes intended.
2008-12-20 22:41:53 +00:00
ad b575edd757 A kernel module to test multithreaded performance of the kernel allocators. 2008-12-20 22:29:05 +00:00
christos 26edf84a4b PR/36954: Roland Illig: don't eat backlash escapes in variable patterns.
Makes ${line%%\**} work.
2008-12-20 20:36:44 +00:00
dsl e06fc1c61f A lot of code assumes that the pointer returned by Buf_GetAll() is malloced.
Replace Buf_Discard() with Buf_Empty() since the former might leave the
'outPtr != buffer' and the only caller wanted all the data discared.
Remove 'outPtr' now that it always equals 'buffer'.
The assumption about Buf_GetAll()is now guaranteed by design.
2008-12-20 18:08:24 +00:00
dsl 0533dfcd70 Remove the definitions of NIL (now unused) and NULL (defined elsewhere). 2008-12-20 17:42:01 +00:00
dsl b1e9c7dca0 Set the .for loop control variables in reverse order to avoid faffing. 2008-12-20 17:38:37 +00:00
wiz 824e316688 Various improvements: wording, macro usage, section naming, structure. 2008-12-20 17:25:20 +00:00
wiz fbbf73942d Drop trailing whitespace. Bump date for poffd. 2008-12-20 17:17:05 +00:00
dsl 03a9360df5 Do not allow Var_Set() or Var_Append() to set the empty variable (which will
now forever remain undefined).
Rework/simplify code to avoid UNCONST().
2008-12-20 17:14:04 +00:00
oster 73225b15a5 When unconfiguring an array where a reconstruct is in progress, abort
the reconstruct and wait for IOs to drain before pulling the plug.

Should fix the panic reported by der Mouse on tech-kern.
2008-12-20 17:04:51 +00:00
wiz 9f442ba1cf mdoclint cleanup. 2008-12-20 16:53:56 +00:00
taca f238b44a94 Change max retry time to 90 seconds from 5 seconds.
It is processed in background to detect ipmi.

Now my ML115 G1 detects ipmi as NetBSD 4_STABLE.

Discussed with Matthias Scheler (tron) with private mail
and approved by him.
2008-12-20 16:52:41 +00:00
dsl b7b48965cc Change some "^I *^I" to "^I^I" and align the comment block about
variable modifiers.
2008-12-20 16:03:59 +00:00
tsutsui a2ae506662 Sync comments about the last segment of KVA space with current implementation.
XXX other m68k ports should be updated as well.
2008-12-20 14:35:53 +00:00
isaki e3d512ec12 x68k pow(4) switches to use MI sysmon framework. 2008-12-20 13:50:20 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
ad 6ad4a3fdd5 Remove stray opt_redzone.h 2008-12-20 13:09:44 +00:00
ad 9a5c311632 Revert part of previous. 2008-12-20 13:07:36 +00:00
ad 0e83efcacb opt_noredzone.h is gone. 2008-12-20 13:06:25 +00:00
cegger 42f4c567d4 catch up with latest changes: sendsig -> sendsig_siginfo 2008-12-20 12:50:24 +00:00
ad 5e34fbf90e - Kill NOREDZONE.
- Make the redzone conditional on DIAGNOSTIC.
- Give amd64 an additional page for the uarea. 2 is not enough.
2008-12-20 12:41:19 +00:00
ad ae6c4143ce Move a couple of calls to pmap_update(). 2008-12-20 11:33:38 +00:00
dsl 81b38761ef Delete very splurious 'free(buf)' that xtos added.
Fixes PR bin/40233
2008-12-20 09:42:02 +00:00
cegger c9114d086d Turn malloc flags into an enum. Fixes build breakage. 2008-12-20 09:17:55 +00:00