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
itojun
f35b1daee4
remove debugging code leftover
2002-08-08 14:38:47 +00:00
briggs
487de1e6b9
Only include sys/pmc.h if PERFCTRS is defined.
2002-08-07 11:13:40 +00:00
briggs
0b956d0b8b
Implement pmc(9) -- An interface to hardware performance monitoring
...
counters. These counters do not exist on all CPUs, but where they
do exist, can be used for counting events such as dcache misses that
would otherwise be difficult or impossible to instrument by code
inspection or hardware simulation.
pmc(9) is meant to be a general interface. Initially, the Intel XScale
counters are the only ones supported.
2002-08-07 05:14:47 +00:00
briggs
5b1917a886
Regen for pmc_get_info, pmc_control.
2002-08-07 04:54:29 +00:00
briggs
a67324a44a
New syscalls: sys_pmc_get_info and sys_pmc_control.
2002-08-07 04:52:53 +00:00
pooka
2bc5807797
Add FORK_CLEANFILES flag to fork1(), which makes the new process start out
...
with a clean descriptor set (ie. not copied or shared from parent).
for rfork()
2002-08-06 13:58:08 +00:00
manu
6e3939dc6a
Move the call up exit hooks before curproc = NULL so that we can
...
use lockmgr in exit hooks.
2002-08-02 22:45:57 +00:00
soren
f7f75af9c5
Make NAMEI_DIAGNOSTIC compile.
2002-08-02 04:49:35 +00:00
itojun
4f0c9c76b6
sync up with latest openbsd systrace.
...
- avoid race conditions by having seqno in ioctl
- better uid/gid tracking
- "replace" policy to replace args
- less diffs, as many of local changes were fed back to openbsd already
due to the 1st item, it was impossible for us to provide backward-compatibility
(new kernel + old bin/systrace won't work). upgrade both.
2002-07-30 16:29:28 +00:00