diff options
author | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-10-17 19:10:40 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s144.Millennium.Berkeley.EDU> | 2010-10-17 19:10:40 -0700 |
commit | 992187797b90db0ac35ce8024dc36334548e2ce2 (patch) | |
tree | 5445b0fc182ed63c1d493edf32fc57ec6ded1690 | |
parent | 3b681865c61338cd600cce666866871d5966918e (diff) | |
download | pk-992187797b90db0ac35ce8024dc36334548e2ce2.zip pk-992187797b90db0ac35ce8024dc36334548e2ce2.tar.gz pk-992187797b90db0ac35ce8024dc36334548e2ce2.tar.bz2 |
[pk] restore correct value to $x1/$x2 after trap
-rw-r--r-- | pk/entry.S | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |