diff options
Diffstat (limited to 'pk/init.c')
-rw-r--r-- | pk/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -107,10 +107,10 @@ void sprintk(char* out, const char* s, ...) void dump_tf(trapframe_t* tf) { static const char* regnames[] = { - "z ", "ra", "v0", "v1", "a0", "a1", "a2", "a3", - "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3", - "t4", "t5", "t6", "t7", "s0", "s1", "s2", "s3", - "s4", "s5", "s6", "s7", "s8", "fp", "sp", "tp" + "z ", "ra", "s0", "s1", "s2", "s3", "s4", "s5", + "s6", "s7", "s8", "s9", "sA", "sB", "sp", "tp", + "v0", "v1", "a0", "a1", "a2", "a3", "a4", "a5", + "a6", "a7", "a8", "a9", "aA", "aB", "aC", "aD" }; tf->gpr[0] = 0; @@ -132,7 +132,7 @@ void init_tf(trapframe_t* tf, long pc, long sp, int user64) tf->sr = (mfpcr(PCR_SR) & (SR_IM | SR_S64)) | SR_S | SR_EC; if(user64) tf->sr |= SR_U64; - tf->gpr[30] = sp; + tf->gpr[14] = sp; tf->epc = pc; } |