summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2009-10-11 16:44:58 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2009-10-11 16:44:58 +0000
commit68c3c08fe883722bfc596d994375c0462cd2330f (patch)
treedbcb324b22234a58724e70b2f2f68fae82b9a19b /sys/powerpc
parentc4b6b5951f24d309835ec29f8721ffe851d4c0d5 (diff)
downloadFreeBSD-src-68c3c08fe883722bfc596d994375c0462cd2330f.zip
FreeBSD-src-68c3c08fe883722bfc596d994375c0462cd2330f.tar.gz
Correct another typo. Actually save the condition register instead
of overwriting r12 by mistake.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/aim/swtch.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/swtch.S b/sys/powerpc/aim/swtch.S
index 619bf89..71d39d0 100644
--- a/sys/powerpc/aim/swtch.S
+++ b/sys/powerpc/aim/swtch.S
@@ -171,7 +171,7 @@ ENTRY(savectx)
mr %r12,%r2
stmw %r12,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */
mfcr %r4 /* Save the condition register */
- stw %r4,PCB_CONTEXT(%r3)
+ stw %r4,PCB_CR(%r3)
blr
/*
OpenPOWER on IntegriCloud