diff options
Diffstat (limited to 'pk/pk.c')
-rw-r--r-- | pk/pk.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |