cegger
beb4d1e5cc
undo turn malloc flags to enums.
...
Requested by christos.
Keep malloc flag defines in kernel section.
2008-12-21 17:49:55 +00:00
tsutsui
b33bc5602e
__inline -> inline
2008-12-21 17:43:49 +00:00
tsutsui
ba2bffa213
Tweak some comments and labels to sync with hp300.
2008-12-21 17:43:32 +00:00
tsutsui
6a29394250
Remove obsolete code for old software interrupt emulation.
...
The MI softint(9) handles it in the kernel threads nowadays.
Note "Emulation of VAX REI instruction" is still there to handle ASTs.
2008-12-21 17:42:05 +00:00
christos
97f12feac9
don't free other jobs when we are specifically using the wait built-in.
2008-12-21 17:16:11 +00:00
christos
271febebf6
use EXP_CASE only when trimming and unquoted.
2008-12-21 17:15:09 +00:00
nonaka
8025a0b1ce
Add VT8237S Integrated SATA Controller support.
2008-12-21 16:27:57 +00:00
nonaka
0b52d4c69a
Regen.
2008-12-21 16:25:28 +00:00
nonaka
77c888b6df
Add VIA VT8237S Integrated SATA Controller ID.
2008-12-21 16:23:53 +00:00
tsutsui
6882959c9b
Account idepth in locore.s.
2008-12-21 15:52:16 +00:00
ad
74302d0fab
Redo previous. Don't count deferrals due to raised IPL. It's not that
...
meaningful.
2008-12-21 13:26:58 +00:00
ad
12e4db0e90
Update flags to match reality.
2008-12-21 11:48:30 +00:00
martin
a1ad1cee58
require newer config(1) for the rootfs changes.
2008-12-21 11:40:48 +00:00
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