freebsd-dev/sys/powerpc/aim
Daniel Eischen 1328e1c4be Add an argument to get_mcontext() which specified whether the
syscall return values should be cleared.  The system calls
getcontext() and swapcontext() want to return 0 on success
but these contexts can be switched to at a later time so
the return values need to be cleared in the saved register
sets.  Other callers of get_mcontext() would normally want
the context without clearing the return values.

Remove the i386-specific context saving from the KSE code.
get_mcontext() is not i386-specific any more.

Fix a bad pointer in the alpha get_mcontext() code.  The
context was being bcopy()'d from &td->tf_frame, but tf_frame
is itself a pointer, so the thread was being copied instead.
Spotted by jake.

Glanced at by:  jake
Reviewed by:    bde (months ago)
2003-04-25 01:50:30 +00:00
..
clock.c Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
copyinout.c Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
interrupt.c Be more conservative about re-enabling interrupts during trap processing 2003-01-08 12:20:46 +00:00
locore.S Remove BAT invalidation. This is done later in the boot sequence, 2003-01-22 01:47:05 +00:00
machdep.c Add an argument to get_mcontext() which specified whether the 2003-04-25 01:50:30 +00:00
mmu_oea.c Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
nexus.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
ofw_machdep.c Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
ofwmagic.S Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
swtch.S Enable the FPU on first use per-thread and save state across context 2003-03-20 10:28:20 +00:00
trap_subr.S Register typo and incorrect 32-bit constant load in previous commit. 2003-02-26 14:41:39 +00:00
trap.c Use __FBSDID rather than rcsid[]. 2003-04-03 21:36:33 +00:00
vm_machdep.c - Split the struct kse into struct upcall and struct kse. struct kse will 2003-02-17 05:14:26 +00:00