|
@@ -205,6 +205,7 @@ do { current_thread_info()->syscall_noerror = 1; \
|
|
} while (0)
|
|
} while (0)
|
|
#define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
|
|
#define user_mode(regs) (!((regs)->tstate & TSTATE_PRIV))
|
|
#define instruction_pointer(regs) ((regs)->tpc)
|
|
#define instruction_pointer(regs) ((regs)->tpc)
|
|
|
|
+#define instruction_pointer_set(regs, val) ((regs)->tpc = (val))
|
|
#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
|
|
#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
|
|
#define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
|
|
#define regs_return_value(regs) ((regs)->u_regs[UREG_I0])
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|