chs
9672ac098f
add a new km flag UVM_KMF_CANFAIL, which causes uvm_km_kmemalloc() to
...
return failure if swap is full and there are no free physical pages.
have malloc() use this flag if M_CANFAIL is passed to it.
use M_CANFAIL to allow amap_extend() to fail when memory is scarce.
this should prevent most of the remaining hangs in low-memory situations.
2002-09-15 16:54:26 +00:00
tsutsui
a4c0983618
Fix devsw_name2blk() to return the correct device name for devname arg.
...
Ok'ed by gehenna.
2002-09-15 14:29:01 +00:00
chs
0e83d71253
print a stack trace in the "spinout" case too.
2002-09-14 21:42:42 +00:00
gehenna
a1d78935eb
overload block/character into u_long field.
...
kern/18234: slightly modified
2002-09-13 13:08:53 +00:00
mycroft
30d477000a
The entry point address for the interpreter must be adjusted by the text
...
section VMA on all platforms. It just happens to 0 normally on everything but
MIPS.
2002-09-12 16:57:44 +00:00
gehenna
fcba53f1a9
fix that no major numbers is assigned dynamically if the
...
not-listed-in-majors device switch is loaded.
2002-09-11 16:33:03 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
jdolecek
32fad21d27
regen: claim syscall slots for kqueue(2) and kevent(2)
2002-09-04 07:46:25 +00:00
jdolecek
281be34ad1
claim syscall slots for kqueue(2) and kevent(2)
2002-09-04 07:45:41 +00:00
jdolecek
4581b93651
Fix comments for #endif, to keep proper nesting and reflect reality.
...
Fixes kern/18162 by Roskens.
2002-09-04 06:34:21 +00:00
matt
48bbf5f234
Use the queue macros from <sys/queue.h> instead of referring to the queue
...
members directly. Use *_FOREACH whenever possible.
2002-09-04 01:32:31 +00:00
sommerfeld
782a77d899
Initialize proc0.p_raslock to avoid a lock assertion on the first fork().
2002-08-31 20:02:09 +00:00
hannken
815491c0b3
Remove the old device buffer queue interface.
...
Approved by: Jason R. Thorpe <thorpej@wasabisystems.com>
2002-08-30 15:43:36 +00:00
chs
2f11784ca7
only create a vmcmd for the BSS if there is any BSS. fixes PR 17834.
2002-08-29 06:31:21 +00:00
gmcgarry
366dfb04d7
Attempt to protect restartable atomic sequences of a traced process
...
being written to. Breakpoints aren't good in a RAS. This test isn't
infallible, since we can't protect memory which will be registered
as a RAS in the future.
Also, set the PC before attempting to single-step, so we can backout
from single-stepping. Just in case we try to single-step into a RAS.
2002-08-28 07:27:14 +00:00
gmcgarry
14e30716d8
Regenerate: rasctl
2002-08-28 07:18:50 +00:00
gmcgarry
5bcbbd40bf
MI kernel support for user-level Restartable Atomic Sequences (RAS).
2002-08-28 07:16:33 +00:00
itojun
6e85b03958
reduce diff w/ openbsd
2002-08-28 03:40:54 +00:00
christos
fea7af3bbe
- Implement passing AT_{R,E}{U,G}ID in the elf aux vector.
...
- Pass struct proc to copyargs
- fix svr4_copyargs functions
2002-08-26 21:07:38 +00:00
augustss
731d1eccf2
Get rid of sysctl for setting BCM2033 firmware path. It doesn't work
...
for ports that don't include files.usb, and it's also not done quite
the way it should.
2002-08-26 13:09:39 +00:00
scw
a82718b34d
Casting from a pointer, to a db_expr_t, has to go via an intptr_t.
...
(db_expr_t == int64_t on sh5, for example).
2002-08-26 11:34:27 +00:00
scw
41e5042829
Pointers must be cast to {,u}intptr_t before they can be cast to register_t,
...
at least on sh5, where sizeof(register_t) != sizeof(void *) in ILP32 mode.
2002-08-26 11:26:09 +00:00
thorpej
3767580d1a
Fix a signed/unsigned comparison warning from GCC 3.3.
2002-08-26 01:26:29 +00:00
thorpej
79111bb802
Fix signed/unsigned comparison warnings from GCC 3.3.
2002-08-26 01:21:58 +00:00
thorpej
d2f6f092f9
Avoid signed/unsigned comparison warnings from GCC 3.3.
2002-08-26 01:17:18 +00:00
thorpej
fde1164ef5
Fix some signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 23:23:22 +00:00
thorpej
88e741999d
Fix signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 23:16:39 +00:00
thorpej
4d94adc849
Fix some signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 23:15:21 +00:00
thorpej
4bec56201d
Fix signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 22:51:05 +00:00
thorpej
556e3c90c4
Fix a signed/unsigned comparison warning from GCC 3.3.
2002-08-25 22:32:02 +00:00
thorpej
c57c6b52cb
Make uiomove()'s count argument a size_t rather than an int.
2002-08-25 22:28:40 +00:00
thorpej
f1e8d159b0
Fix signed/unsigned conditional expression warning from GCC 3.3.
2002-08-25 21:47:50 +00:00
thorpej
cc84cfd836
Fix signed/unsigned comparison warning from GCC 3.3.
2002-08-25 21:44:13 +00:00
thorpej
7055457a98
Fix some signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 21:30:40 +00:00
thorpej
5f7ccd1634
Fix a signed/unsigned comparison warning from GCC 3.3.
2002-08-25 21:19:41 +00:00
thorpej
cf013daeb3
Fix some signed/unsigned comparison warnings from GCC 3.3.
2002-08-25 21:18:15 +00:00
thorpej
139cdc3125
Make nbuf, nswbuf, and bufpages unsigned. Make all operations on these
...
variables unsigned, and update places where their values are printed.
2002-08-25 20:21:33 +00:00
thorpej
f02cb5ee27
Make hashinit() use unsigned quantities throughout.
2002-08-25 20:01:12 +00:00
thorpej
d4a2567abe
Fix a signed/unsigned comparison warning from GCC 3.3.
2002-08-25 19:13:08 +00:00
augustss
cdbff56c90
Add sysctl support for hw.dev.ubtbcmfw (so I can set the firmware
...
path for my BCM2033).
2002-08-24 17:27:01 +00:00
lukem
141ac20efe
only print "init: trying /some/init" if RB_ASKNAME or if it's not the first
...
path we're trying. (the intent but not the behaviour of the previous rev.)
2002-08-24 00:47:17 +00:00
matt
2d290eb699
Use the qtype_FOREACH macros. Print out address of hook that could not
...
be disestablished.
2002-08-23 20:50:25 +00:00
lukem
76f5313c64
in start_init(), if RB_ASKNAME is set in boothowto, ask for the path
...
name to start up as init (rather than just cycling thru initpaths[]
and panicing when out of options). if RB_ASKNAME isn't set, the old
behaviour remains. inspired by changes in der Mouse's patchtree.
resolves [kern/18027] from me.
2002-08-23 06:17:08 +00:00
thorpej
c196b51fad
In sbcompress(), if we toss an empty mbuf, make sure to update
...
sb_lastrecord if necessary.
From Daniel Hartmeier <daniel@benzedrine.cx>.
2002-08-22 20:56:48 +00:00
thorpej
b2cc5a4c03
Make use of page loaning for large socket writes the default. The
...
SOSEND_NO_LOAN option can be used to go back to the old behavior.
2002-08-21 05:13:36 +00:00
itojun
fcfced244e
avoid integer overflow during computation of nbuf. from enami
2002-08-21 02:48:54 +00:00
thorpej
95cb683cfb
Don't pass VM_PROT_EXEC to pmap_kenter_pa().
2002-08-14 15:21:31 +00:00
manu
04e1708030
In exit1(), moved the call to the emulation exit hook to a place where it is
...
safet to sleep.
2002-08-13 05:42:27 +00:00
jdolecek
60be0b94a0
selscan(): make flag[] const
2002-08-08 20:40:25 +00:00
itojun
f3f3dd4992
cast register_t/size_t to u_long on printing.
...
From: Havard Eidnes <he@netbsd.org>
2002-08-08 14:43:40 +00:00