summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powerpc/swtch.S
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
committerjulian <julian@FreeBSD.org>2001-09-12 08:38:13 +0000
commit5596676e6c6c1e81e899cd0531f9b1c28a292669 (patch)
treeb1a19fcdf05759281fab0d89efb13f0fdf42102e /sys/powerpc/powerpc/swtch.S
parent83e00d4274950d2b531c24692cd123538ffbddb9 (diff)
downloadFreeBSD-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/powerpc/powerpc/swtch.S')
-rw-r--r--sys/powerpc/powerpc/swtch.S10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/powerpc/powerpc/swtch.S b/sys/powerpc/powerpc/swtch.S
index 35a5ed5..af18976 100644
--- a/sys/powerpc/powerpc/swtch.S
+++ b/sys/powerpc/powerpc/swtch.S
@@ -143,7 +143,7 @@ ENTRY(cpu_switch)
mr 30,3
mfsprg 3,0
xor 31,31,31
- stw 31,GD_CURPROC(3) /* Zero to not accumulate cpu time */
+ stw 31,GD_CURTHREAD(3) /* Zero to not accumulate cpu time */
mfsprg 3,0
lwz 31,GD_CURPCB(3)
@@ -159,7 +159,7 @@ ENTRY(cpu_switch)
1:
/* record new process */
mfsprg 4,0
- stw 3,GD_CURPROC(4)
+ stw 3,GD_CURTHREAD(4)
cmpl 0,31,30 /* is it the same process? */
beq switch_return
@@ -172,7 +172,7 @@ ENTRY(cpu_switch)
mr 12,2 /* save r2 */
stwu 1,-SFRAMELEN(1) /* still running on old stack */
stmw 10,8(1)
- lwz 3,P_ADDR(30)
+ lwz 3,TD_ADDR(30)
stw 1,PCB_SP(3) /* save SP */
switch_exited:
@@ -182,7 +182,7 @@ switch_exited:
mtmsr 3
/* indicate new pcb */
- lwz 4,P_ADDR(31)
+ lwz 4,TD_ADDR(31)
mfsprg 5,0
stw 4,GD_CURPCB(5)
@@ -227,7 +227,7 @@ switch_return:
bl lcsplx
#endif
- mr 3,30 /* get curproc for special fork
+ mr 3,30 /* get curthread for special fork
returns */
lwz 31,12(1)
OpenPOWER on IntegriCloud