aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-17 19:10:40 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2010-10-17 19:10:40 -0700
commit992187797b90db0ac35ce8024dc36334548e2ce2 (patch)
tree5445b0fc182ed63c1d493edf32fc57ec6ded1690 /pk
parent3b681865c61338cd600cce666866871d5966918e (diff)
downloadpk-992187797b90db0ac35ce8024dc36334548e2ce2.zip
pk-992187797b90db0ac35ce8024dc36334548e2ce2.tar.gz
pk-992187797b90db0ac35ce8024dc36334548e2ce2.tar.bz2
[pk] restore correct value to $x1/$x2 after trap
Diffstat (limited to 'pk')
-rw-r--r--pk/entry.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/entry.S b/pk/entry.S
index b128e93..fa64a80 100644
--- a/pk/entry.S
+++ b/pk/entry.S
@@ -79,7 +79,7 @@ pop_tf: # write the trap frame onto the stack
LOAD $x1,1*REGBYTES($a0)
mtpcr $x1,ASM_CR(PCR_K0)
LOAD $x1,2*REGBYTES($a0)
- mtpcr $x1,ASM_CR(PCR_K1)
+ mtpcr $x2,ASM_CR(PCR_K1)
move $x1,$a0
LOAD $x3,3*REGBYTES($x1)
LOAD $x4,4*REGBYTES($x1)