aboutsummaryrefslogtreecommitdiff
path: root/pk/pk.c
diff options
context:
space:
mode:
Diffstat (limited to 'pk/pk.c')
-rw-r--r--pk/pk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/pk.c b/pk/pk.c
index 33b0bda..2f516b9 100644
--- a/pk/pk.c
+++ b/pk/pk.c
@@ -127,9 +127,9 @@ void init_tf(trapframe_t* tf, long pc, long sp, int user64)
memset(tf,0,sizeof(*tf));
if(sizeof(void*) != 8)
kassert(!user64);
- tf->sr = (mfpcr(PCR_SR) & (SR_IM | SR_SX)) | SR_S | SR_EC;
+ tf->sr = (mfpcr(PCR_SR) & (SR_IM | SR_S64)) | SR_S | SR_EC;
if(user64)
- tf->sr |= SR_UX;
+ tf->sr |= SR_U64;
tf->gpr[30] = sp;
tf->epc = pc;
}