summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64/processor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips64/processor.h')
-rw-r--r--include/asm-mips64/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips64/processor.h b/include/asm-mips64/processor.h
index 9715abc14..8a3cad9f3 100644
--- a/include/asm-mips64/processor.h
+++ b/include/asm-mips64/processor.h
@@ -251,7 +251,7 @@ extern inline unsigned long thread_saved_pc(struct thread_struct *t)
if (t->reg31 == (unsigned long) ret_from_sys_call)
return t->reg31;
- return ((unsigned long*)t->reg29)[17];
+ return ((unsigned long*)t->reg29)[11];
}
#define user_mode(regs) (((regs)->cp0_status & ST0_KSU) == KSU_USER)