From 992187797b90db0ac35ce8024dc36334548e2ce2 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 17 Oct 2010 19:10:40 -0700 Subject: [PATCH] [pk] restore correct value to $x1/$x2 after trap --- pk/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)