git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
asm-alpha
/
ptrace.h
diff --git
a/include/asm-alpha/ptrace.h
b/include/asm-alpha/ptrace.h
index
e77230f
..
9933b8b
100644
(file)
--- a/
include/asm-alpha/ptrace.h
+++ b/
include/asm-alpha/ptrace.h
@@
-67,14
+67,18
@@
struct switch_stack {
};
#ifdef __KERNEL__
};
#ifdef __KERNEL__
+
+#define __ARCH_SYS_PTRACE 1
+
#define user_mode(regs) (((regs)->ps & 8) != 0)
#define instruction_pointer(regs) ((regs)->pc)
#define user_mode(regs) (((regs)->ps & 8) != 0)
#define instruction_pointer(regs) ((regs)->pc)
+#define profile_pc(regs) instruction_pointer(regs)
extern void show_regs(struct pt_regs *);
extern void show_regs(struct pt_regs *);
-#define
alpha_task
_regs(task) \
- ((struct pt_regs *) (
(long) (task)->thread_info
+ 2*PAGE_SIZE) - 1)
+#define
task_pt
_regs(task) \
+ ((struct pt_regs *) (
task_stack_page(task)
+ 2*PAGE_SIZE) - 1)
-#define force_successful_syscall_return() (
alpha_task
_regs(current)->r0 = 0)
+#define force_successful_syscall_return() (
task_pt
_regs(current)->r0 = 0)
#endif
#endif