diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2001-12-11 23:33:44 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2001-12-11 23:33:44 +0000 |
| commit | 0bbc882680ceece07eb134ddeb7fceffb59ea018 (patch) | |
| tree | c785835e70070309148a72c55669ff0bf043a20a /sys/powerpc/aim/swtch.S | |
| parent | defd4957ccd0abfd2d3d3417dfae025ee37f770e (diff) | |
Notes
Diffstat (limited to 'sys/powerpc/aim/swtch.S')
| -rw-r--r-- | sys/powerpc/aim/swtch.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/aim/swtch.S b/sys/powerpc/aim/swtch.S index c8002648b3540..3b5b1cddb24cb 100644 --- a/sys/powerpc/aim/swtch.S +++ b/sys/powerpc/aim/swtch.S @@ -72,8 +72,8 @@ */ ENTRY(cpu_switch) mflr %r30 - mfsprg %r3,%r0 /* Get the globaldata pointer */ - lwz %r4,GD_CURTHREAD(%r3) /* Get the current thread */ + mfsprg %r3,%r0 /* Get the pcpu pointer */ + lwz %r4,PC_CURTHREAD(%r3) /* Get the current thread */ lwz %r3,TD_PCB(%r4) /* Get a pointer to the PCB */ stmw %r14,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */ @@ -95,8 +95,8 @@ ENTRY(cpu_switch) bl pmap_activate /* Activate the new address space */ mtlr %r30 - mfsprg %r4,%r0 /* Get the globaldata pointer */ - stw %r14,GD_CURTHREAD(%r4) /* Store new current thread */ + mfsprg %r4,%r0 /* Get the pcpu pointer */ + stw %r14,PC_CURTHREAD(%r4) /* Store new current thread */ lwz %r4,TD_PCB(%r14) /* Grab the new PCB */ lwz %r29, PCB_FLAGS(%r4) /* Restore FPU regs if needed */ |
