Commit Graph

271 Commits

Author SHA1 Message Date
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
skrll
768818c328 Whitespace. 2008-04-25 12:41:50 +00:00
ad
284c2b9aef Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
2008-04-24 18:39:20 +00:00
skrll
0cef8c99e4 Split the DDB trace stuff into its own file. 2008-04-24 07:28:30 +00:00
skrll
9fcc1f5407 de-__P 2008-04-06 08:03:36 +00:00
skrll
5886a5273b Need to pull in kobj_machdep.c for options MODULAR 2008-03-29 15:34:19 +00:00
simonb
a1ba91e196 Remove unused _BSD_OFF_T_. 2008-03-22 22:06:35 +00:00
skrll
4834c1b95c Arrgh.
Must try to develop and commit from the same machine.
2008-03-01 12:54:19 +00:00
skrll
90c2422ec8 Oops, fix compilation errors.
I have tested this - it's enough to load sys/modules/example.o.

Honest!
2008-03-01 12:44:53 +00:00
skrll
7bd976725f hppa bits for the kernel linker. 2008-03-01 12:40:08 +00:00
ad
372461e58e Add aliases for atomic_cas_foo_ni(). 2008-02-10 13:32:14 +00:00
dsl
c2a8c787c3 Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53
2008-02-06 22:12:39 +00:00
skrll
f867ae875e Rely on implicit PAGE_SIZE alignment and don't confuse uvm_glue.c. 2008-02-05 10:10:21 +00:00
skrll
f7a8a22745 Catch up with "Refactor in_cksum/in4_cksum/in6_cksum implementations".
Hi Joerg.
2008-01-29 19:29:37 +00:00
skrll
dbf783eccf bcopy -> memcpy 2008-01-29 18:46:18 +00:00
joerg
6e869e402d Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
  They call a backend function cpu_in_cksum after possibly
  computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
  The default implementation is moderate fast on most platforms
  and provides a 32bit accumulator with 16bit addends for L32 platforms
  and a 64bit accumulator with 32bit addends for L64 platforms.
  It handles edge cases like very large mbuf chains (could happen with
  native IPv6 in the future) and provides a good base for new native
  implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.
2008-01-25 21:12:10 +00:00
skrll
886189b384 Adjust comments to fit <80 columns. 2008-01-18 10:03:27 +00:00
skrll
f447c6a89d KNF 2008-01-18 10:00:48 +00:00
skrll
fb13dda50a Correct a comment. 2008-01-18 09:56:41 +00:00
skrll
954a1f6c2c Add W and O PSW bit defines.
From OpenBSD.
2008-01-18 09:42:12 +00:00
skrll
ae654e4721 Various improvements to the hppa kernel for gdb.
- add the useful space and control registers to struct reg
	- update process_{read,write}_regs accordingly
	- use MID_HPPA in core dumps.
	- dump the fp regs into cores.
	- add single stepping support from OpenBSD.
2008-01-10 21:08:40 +00:00
dsl
b6e6554ace include sys/simplelock.h 2008-01-06 13:25:22 +00:00
dsl
b8bcdbe9e6 Don't pass 'curlwp' into trace_enter() and trace_exit(). 2008-01-05 12:53:52 +00:00
ad
0c8143169b Fix includes 2008-01-05 00:22:34 +00:00
he
1b2f5d4f55 Remove the #endif corresponding to the #ifdef _KERNEL removed in previous. 2008-01-02 21:00:34 +00:00
ad
9f6b8c4d04 Remove COMPAT_HPUX. 2007-12-31 13:38:47 +00:00
skrll
6698b79073 Minor change to comment. 2007-12-22 14:14:31 +00:00
skrll
c54df2db09 Add some more trap types and HPPA_BREAK_SS. From OpenBSD. 2007-12-22 14:11:10 +00:00
skrll
4fef0969e0 Align the stack when delivering signals and don't waste a HPPA_FRAME_SIZE. 2007-12-22 14:09:03 +00:00
skrll
0361d1fef2 Cast the argument to HPPA_FRAME_ROUND to uintptr_t 2007-12-22 14:06:47 +00:00
skrll
2b4f402919 Improve ddb backtraces by:
- Starting with the right set of fp, pc, and rp in all cases.
	- Dropping the argument printing stuff as it could never work.
	- Backtrace through traps and decode syscalls properly by
	  making sure the trapframe is at a known offset from the stack
	  pointer in both cases. Also, ensure that the frame pointer
	  is zero so that we can detect traps.
2007-12-21 13:05:26 +00:00
skrll
f4ce2b2831 Fix typo that broke bt /a with curlwp 2007-12-20 20:24:47 +00:00
skrll
f63ceafc74 typo in comment. 2007-12-20 08:11:31 +00:00
perry
9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
skrll
ed0dc19ecc g/c __HPPA_SIGNAL_PRIVATE 2007-12-13 21:34:18 +00:00
skrll
e151146b60 Provide a _C_LABEL 2007-12-02 15:55:09 +00:00
ad
ad40d74014 - Change lock_cas from "compare and set" to "compare and swap".
- Add aliases for atomic_cas_ulong(), etc.

Ok skrll@
2007-11-29 16:14:28 +00:00
yamt
ee7cf9f0ab pmap_create: M_VMMAP -> M_VMPMAP for pmap. 2007-11-26 08:33:11 +00:00
skrll
e2b2bdc928 Define PT_MACHDEP_STRINGS for kdump(1) 2007-11-22 11:58:48 +00:00
yamt
38d5e34116 make kmutex_t and krwlock_t smaller by killing lock id.
ok'ed by Andrew Doran.
2007-11-21 10:19:06 +00:00
skrll
caacd2c467 Typo in comment. From OpenBSD. 2007-11-18 12:18:21 +00:00
skrll
74c813c4e9 s/proc/lwp/ in comment 2007-11-16 07:36:10 +00:00
skrll
fd4abe684b No need for reg.h here. 2007-11-13 15:53:17 +00:00
skrll
1acb610fdd Don't use structure copy in __cpu_simple_lock_init. Set the array elements
to __SIMPLELOCK_RAW_UNLOCKED instead.
2007-11-13 11:37:06 +00:00
skrll
c1e4ee94be Fix kernel profiling on HPPA.
- stop gcc emitting stuff that HPUX requires
- don't use splhigh() in MCOUNT_ENTER as a call to _mcount will be
  generated at the moment. Disable interrupts in hardware instead.
- Fix _PROF_PROLOGUE to save/restore all the register args when calling
  _mcount.
- Fixup LEAF_ENTRY to dtrt (I think) in the GPROF case.
- Provide LEAF_ENTRY_NOPROFILE and sprinkle its use where i) profiling
  causes problems, e.g. trap handlers, and ii) where it just doesn't
  make sense, e.g. start.
2007-11-12 12:58:10 +00:00
ad
bd6663fc4d Don't set l_usrpri / spc_curpriority here. mi_userret() does it. 2007-11-05 20:37:48 +00:00
skrll
016efc036d Remove get_psw/set_psw - they're not needed and can cause problems. 2007-10-18 18:55:10 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
skrll
20d370f9df Make want_resched a member of cpu_info. 2007-10-02 13:49:45 +00:00
he
ed42b680fa Fix build problem: ensure uintptr_t is declared by including <sys/stdint.h>.
OKed by skrll.
2007-09-15 08:05:34 +00:00