Commit Graph

805 Commits

Author SHA1 Message Date
elad 1e70d64818 Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 16:55:29 +00:00
martin 6288976a60 Allow pmap_enter_ptpage to fail, sometimes. Pass WAIT/NOWAIT flags and
fix some obvious locking problems. This allows us to run a LOCKDEBUG
kernel now.
No objection from mhitch and chs.
2006-12-30 01:28:57 +00:00
wiz fa34b615d2 Correct spelling of "immediate(ly)". From Zafer. 2006-11-24 21:23:07 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
he 8d51656fd4 Const-ness is now (by the new gcc) propagated from structs to
members, so constify so as to not lose qualification.
2006-10-23 18:58:24 +00:00
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
mhitch 55fb5385d7 Common m68k pmap has same problem with 68060 after 17 month old uvm changes.
Tested and verified on my Amiga (yes, I'm hoping to switch amiga to using
the common pmp_motorola.c).

Uvm changes over 17 months ago resulted in the 68040/060 segment table
page being entered with pmap_kenter(), which does not record the mapping
in the pv table.  Attempting to inhibit caching of that page as required
by the 68060 hardware no longer changes the PTE and caused varying degrees
of multiple faulting, sometimes resulting in an unusable system.  Apparently
very few people attempted to run a 68060 based system since that change.
Fix to to change the caching bits directly rather than using pmap_changebit().
2006-09-16 17:31: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
matt d2fa9e5329 Make cpu_coredump dependent on COREDUMP 2006-08-31 16:49:21 +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
tsutsui cab7ee65e0 Remove __P(). 2006-08-07 23:24:55 +00:00
mhitch 977da07ffe gcc4 checks for and warns of matching constraints that don't specify
a register operand.  Remove the matching constraint and change the output
operand constraint from "=m" (write-only) to "+m" (read-write).
2006-08-03 20:32:07 +00:00
drochner 84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
ad f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
tsutsui 83d364980f TAB/space cleanup. 2006-07-22 06:58:17 +00:00
tsutsui ecc22258ee - remove parentheses from return
- remove trailing spaces
2006-07-22 06:42:41 +00:00
tsutsui 999dc402f0 KNF, remove register decls 2006-07-22 06:40:44 +00:00
tsutsui 9b4ab881f1 - include <m68k/m68k.h> for fputype decl
- some KNF
2006-07-22 06:40:20 +00:00
tsutsui 2bf43cdfa1 remove __P(), ANSIfy, KNF, use pmap_t rather than struct pmap * 2006-07-22 06:37:27 +00:00
tsutsui 2895c250c2 KNF, ANSIfy, remove register decls 2006-07-22 06:36:06 +00:00
tsutsui 4d891ed888 KNF and misc cosmetics 2006-07-22 06:34:41 +00:00
tsutsui f430313b2d - remove unused decls.
- remove parentheses from return arg
2006-07-22 06:32:17 +00:00
tsutsui c15c158ffc KNF, ANSIfy, de-__P(), bzero() -> memset() 2006-07-22 06:27:00 +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
tsutsui c4a04b7ba4 Backout previous since there is an objection and I'm not a toolchain guy. 2006-06-27 09:22:30 +00:00
tsutsui 45e77c51c9 XXX: Appease gcc4 -Wuninitialized warnings. 2006-06-25 14:19:56 +00:00
tsutsui da091c39ed Fix "warning: matching constraint does not allow a register" on gcc4.
(I guess constraints "0-9" are valid only for register operands, right?)
2006-06-25 14:17:40 +00:00
tsutsui 648df6ea96 Pass sed command path to asm2gas via environment
rather than arg. ok'ed by gdamore.
2006-06-24 03:28:42 +00:00
gdamore 5b4951cdf4 Use TOOL_SED for asm2gas, which makes it possible to cross-compile this
on Solaris 10.  (Solaris 10's sed doesn't like the comment lines, and
also complains about too many commands in the input.)
2006-06-18 05:21:21 +00:00
elad 8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
skrll 214053461e Fix some more comments. 2006-05-13 08:56:08 +00:00
oster 79a8ee2f0f Populate /usr/include/m68k with both pmap_motorola.h and pte_motorola.h.
/usr/include/m68k/pmap.h expects to find pmap_motorola.h, and
/usr/include/machine/pte.h wants pte_motorola.h.
2006-04-13 19:51:09 +00:00
mrg 0db1500b43 retire HAVE_GCC3/HAVE_GCC4 and introduce HAVE_GCC that is set to 2, 3 or 4. 2006-04-07 19:38:58 +00:00
oster 6b45384deb We don't need (or want!) to include cpuframe.h or have sigstate
visible to userland on m68k.  Fixes numerous pkgsrc build issues where
"struct frame" as defined in cpuframe.h pollutes the local namespace.

Compile-tested full builds for hp300, mac68k, amiga, sun3, and next68k.

OK'ed by matt@.
2006-04-01 18:03:55 +00:00
cherry d600e81a73 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:44:58 +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 53c5776a46 syscall_fancy is only defined if either KTRACE or SYSTRACE is set,
so enclose its use in the same set of conditionals.
2006-03-06 08:05:06 +00:00
rjs 15f20d6c5b Always define syscall_fancy. 2006-03-05 22:34:34 +00:00
aymeric d065f526ab pass -traditional to ${CPP} so that the test for FPSP indeed works 2006-03-05 22:03:30 +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
wiz 5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +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
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