diff options
author | julian <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2001-09-12 08:38:13 +0000 |
commit | 5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch) | |
tree | b1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/sparc64/sparc64/rwindow.c | |
parent | 83e00d4274950d2b531c24692cd123538ffbddb9 (diff) | |
download | FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.zip FreeBSD-src-5596676e6c6c1e81e899cd0531f9b1c28a292669.tar.gz |
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
Diffstat (limited to 'sys/sparc64/sparc64/rwindow.c')
-rw-r--r-- | sys/sparc64/sparc64/rwindow.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sys/sparc64/sparc64/rwindow.c b/sys/sparc64/sparc64/rwindow.c index 474e6a9..5bcd9fb 100644 --- a/sys/sparc64/sparc64/rwindow.c +++ b/sys/sparc64/sparc64/rwindow.c @@ -38,7 +38,7 @@ #include <machine/frame.h> int -rwindow_load(struct proc *p, struct trapframe *tf, int n) +rwindow_load(struct thread *td, struct trapframe *tf, int n) { struct rwindow rw; u_long usp; @@ -49,11 +49,11 @@ rwindow_load(struct proc *p, struct trapframe *tf, int n) * In case current window is still only on-chip, push it out; * if it cannot get all the way out, we cannot continue either. */ - if ((error = rwindow_save(p)) != 0) + if ((error = rwindow_save(td)) != 0) return (error); usp = tf->tf_out[6]; - CTR3(KTR_TRAP, "rwindow_load: p=%p (%s) n=%d", - p, p->p_comm, n); + CTR3(KTR_TRAP, "rwindow_load: td=%p (%s) n=%d", + td, td->td_proc->p_comm, n); for (i = 0; i < n; i++) { CTR1(KTR_TRAP, "rwindow_load: usp=%#lx", usp); usp += SPOFF; @@ -65,7 +65,7 @@ rwindow_load(struct proc *p, struct trapframe *tf, int n) } int -rwindow_save(struct proc *p) +rwindow_save(struct thread *td) { struct rwindow *rw; struct pcb *pcb; @@ -75,9 +75,10 @@ rwindow_save(struct proc *p) int i; flushw(); - pcb = &p->p_addr->u_pcb; + pcb = td->td_pcb; i = pcb->pcb_nsaved; - CTR3(KTR_TRAP, "rwindow_save: p=%p (%s) nsaved=%d", p, p->p_comm, i); + CTR3(KTR_TRAP, "rwindow_save: td=%p (%s) nsaved=%d", td, + td->td_proc->p_comm, i); if (i == 0) return (0); ausp = pcb->pcb_rwsp; |