patch-2.4.23 linux-2.4.23/include/asm-alpha/ptrace.h

Next file: linux-2.4.23/include/asm-alpha/sysinfo.h
Previous file: linux-2.4.23/include/asm-alpha/processor.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-alpha/ptrace.h linux-2.4.23/include/asm-alpha/ptrace.h
@@ -70,6 +70,12 @@
 #define user_mode(regs) (((regs)->ps & 8) != 0)
 #define instruction_pointer(regs) ((regs)->pc)
 extern void show_regs(struct pt_regs *);
+
+#define alpha_task_regs(task) \
+  ((struct pt_regs *)((long)(task) + 2*PAGE_SIZE) - 1)
+
+#define force_successful_syscall_return() (alpha_task_regs(current)->r0 = 0)
+
 #endif
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)