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
-  Lines: 13
-  Date:
2003-11-28 10:26:21.000000000 -0800
-  Orig file: 
linux-2.4.22/include/asm-alpha/ptrace.h
-  Orig date: 
1999-07-12 07:49:36.000000000 -0700
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)