tnozaki
44eb8f042e
fix gcc -Werror -Wmissing-braces problem
...
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
2006-10-04 13:51:59 +00:00
elad
65792a0340
More from Matt Fleming:
...
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
gdamore
56d0303ea2
Don't forget to call tc_init() to register the timecounter.
2006-09-09 22:40:42 +00:00
gdamore
3b99481ae2
Convert to timecounters. Compile tested only. Ok steve@.
2006-09-09 22:33:13 +00:00
ad
6c8685b2d2
Use p_find(addr, PFIND_LOCKED) in case the proclist_lock is held.
2006-09-06 23:58:20 +00:00
gdamore
86352b01a2
Convert to MI todr.
2006-09-05 07:34:54 +00:00
gdamore
a37acb1b52
Remove unused todr_setcal/todr_getcal and all the assorted stub
...
implementations.
2006-09-04 23:45:30 +00:00
scw
dc27fa975f
Set the division strategy to 'call' to avoid explicit references to
...
'div_table' when the default 'call2' is used.
2006-09-04 20:43:01 +00:00
scw
998e6a1552
Drop the volatile qualifier from switch_exit()'s prototype.
2006-09-04 20:10:42 +00:00
scw
163f415b3f
Appease gcc4.
2006-09-04 20:09:55 +00:00
scw
a5ff553c53
Rearrange some code to avoid a gcc4 'possibly uninitialised variable' warning.
2006-09-04 20:08:56 +00:00
scw
5cd57a5a0f
Pull in <sys/evcnt.h>
2006-09-04 20:05:45 +00:00
scw
19dac2e487
Remove unused r_sp #define.
2006-09-04 20:05:12 +00:00
yamt
e527ebac6f
- remove unused bdbtofsb.
...
- move the following macros from MD headers to sys/param.h.
ctod
dtoc
ctob
btoc
dbtob
btodb
2006-08-28 13:43:35 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
ad
2b79369c7e
- Hold a reference to the process credentials in each struct lwp.
...
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
mrg
d6b63d330d
use "j" instead of "ll" for intmax_t and friends.
...
XXX: we should probably use "j" for all(?) other platforms as well
(just for intmax_t and friends.)
2006-05-22 07:38:41 +00:00
yamt
b146bf6cab
include kauth.h for kauth_cred_geteuid.
2006-05-15 20:55:47 +00:00
elad
8ccb6c9341
integrate kauth.
2006-05-14 21:55:09 +00:00
cherry
93447d7ac4
closes: PR kern/32359
...
modifies machine/db_machdep.h: BKPT_SET(inst) to BKPT_SET(inst, addr) for all archs ie; passess the
breakpoint address as well.
Patch from cherry@mahiti.org
2006-04-01 15:45:00 +00:00
drochner
47fbb9d86b
adapt to uvm_fault() interface cleanup: kill the useless 3rd argument
2006-03-15 18:12:02 +00:00
thorpej
61dd49d3bc
Syscall debug tracing is handled by trace_enter() / trace_exit(). Change
...
trace_is_enabled() to return TRUE if SYSCALL_DEBUG is defined, and g/c
all of the SYSCALL_DEBUG handling from individual system call dispatch
routines.
2006-03-07 07:21:50 +00:00
thorpej
be8b235384
Clean up fallout proc_is_traced_p() change:
...
- proc_is_traced_p() -> trace_is_enabled(), to match trace_enter() and
trace_exit().
- trace_is_enabled() becomes a real function.
- Remove unnecessary include files from various files that used to care
about KTRACE and SYSTRACE, but do no more.
2006-03-07 03:32:04 +00:00
he
26393ce66e
Remove another instance of the SET/CLR/ISSET macro triplet, now that
...
they have been moved to <sys/types.h>.
2006-03-06 15:03:49 +00:00
christos
beea4fc3fa
Add a proc_is_traced_p() macro and use it, instead of copying the same code
...
in many places. Idea from thorpej.
2006-03-05 19:08:38 +00:00
christos
a4495f4cec
implement PT_SYSCALL
2006-03-05 07:21:37 +00:00
yamt
ec5a93183a
merge yamt-uio_vmspace branch.
...
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
3ddf26777f
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
...
directly.
2006-02-20 16:50:36 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
dsl
67d47e0290
Change sys/arch/xxx/include/bswap.h to #include machine/byte_swap.h then
...
sys/bswap.h in order to pick up the MD inline routines and the constant
folding definitions in the right order.
Code can include either sys/bswap.h or machine/bswap.h with the same effect.
2006-01-31 07:49:18 +00:00
dsl
c88ae1f9ee
Move all the stuff that detects bswapxx(constant) into the MI sys/bswap.h
...
Put the minimum to define the required inline assembler or C into the MD files.
NB: there may be some fallout from this!
2006-01-30 22:46:35 +00:00
dsl
2723c11bd9
Move the definitions of ntohl() and friends into sys/endian.h where they
...
are defined in terms of bswap32() and bswap16().
This makes the definition be in the same place for all systems regardless
of creed^Wendianness.
2006-01-30 21:52:38 +00:00
dsl
6f0f9f8763
Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
...
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
christos
3ffa241fcd
Add a STRONG_ALIAS macro
2006-01-20 22:02:40 +00:00
perry
2d542ba1f8
inline -> __inline
2005-12-28 19:09:29 +00:00
perry
e7b322a5f7
inline -> __inline
2005-12-28 18:40:13 +00:00
perry
50a256a3a0
__asm__ -> __asm
...
__const__ -> const
__inline__ -> inline
__volatile__ -> volatile
2005-12-24 23:23:59 +00:00
perry
2d65de2479
bare asm -> __asm
2005-12-24 22:45:33 +00:00
perry
5f1c88d70d
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
2005-12-24 20:06:46 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
yamt
6bba73019a
use VM_PAGE_TO_PHYS macro.
2005-12-08 22:41:44 +00:00
yamt
bc21da4cfb
bus_dmamem_map: honour BUS_DMA_NOWAIT. noted by Manuel Bouyer.
...
bus_space_map: always do NOWAIT allocation as it used to be before yamt-km.
we have too many copies!
2005-11-24 13:08:32 +00:00
yamt
d597202302
make VMSWAP optional again.
2005-09-17 14:38:38 +00:00
drochner
44bf0a7ee2
s/locdesc_t/int/g
2005-08-26 13:19:34 +00:00
yamt
38ca5312d2
revert "defflag VMSWAP" changes for now.
...
there seems to be far more people who don't want to edit
their kernel config files than i thought.
2005-07-31 04:04:30 +00:00
yamt
1d0891101c
defflag VMSWAP.
2005-07-30 06:33:33 +00:00
christos
f1461c7e8a
No point in declaring syscall_intern and syscall in a zillion places.
2005-07-10 00:45:52 +00:00
cube
72f6b3a65c
Constify machine32 and machine_arch32.
2005-07-03 17:18:02 +00:00
cube
6f082c10a9
Make COMPAT_NETBSD32 emulate hw.machine. While it might seem wrong to do
...
so, it introduces breakage because a lot of applications make assumptions
from its value. It's especially bad in the sparc64 case, where 64-bits
instructions can be used in 32-bits addressing mode. However, there are
other means to know the capabilities of the CPU.
2005-07-03 16:53:46 +00:00
christos
6d30dcee75
PR/29607: Christian Biere systrace doesn't handle interrupted syscalls properly
...
Instead of jumping to the default "bad" case, jump to the error handling
switch, so that we can deal with ERESTART/EJUSTRETURN properly.
2005-07-01 18:01:44 +00:00