diff options
Diffstat (limited to 'sys/mips')
-rw-r--r-- | sys/mips/mips/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/mips/mips/trap.c b/sys/mips/mips/trap.c index fafd37adf9e0..77cfcd0ec1d6 100644 --- a/sys/mips/mips/trap.c +++ b/sys/mips/mips/trap.c @@ -765,7 +765,7 @@ dofault: case T_RES_INST + T_USER: { InstFmt inst; - inst = *(InstFmt *)trapframe->pc; + inst = *(InstFmt *)(intptr_t)trapframe->pc; switch (inst.RType.op) { case OP_SPECIAL3: switch (inst.RType.func) { @@ -773,7 +773,7 @@ dofault: /* Register 29 used for TLS */ if (inst.RType.rd == 29) { frame_regs = &(trapframe->zero); - frame_regs[inst.RType.rt] = (register_t)td->td_md.md_tls; + frame_regs[inst.RType.rt] = (register_t)(intptr_t)td->td_md.md_tls; trapframe->pc += sizeof(int); goto out; } |