diff options
Diffstat (limited to 'include/asm-um')
-rw-r--r-- | include/asm-um/page.h | 1 | ||||
-rw-r--r-- | include/asm-um/ptrace-generic.h | 11 | ||||
-rw-r--r-- | include/asm-um/ptrace-i386.h | 6 |
3 files changed, 14 insertions, 4 deletions
diff --git a/include/asm-um/page.h b/include/asm-um/page.h index 8e310d81e5b..4b424c75fca 100644 --- a/include/asm-um/page.h +++ b/include/asm-um/page.h | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | struct page; | 10 | struct page; |
11 | 11 | ||
12 | #include <linux/types.h> | ||
12 | #include <asm/vm-flags.h> | 13 | #include <asm/vm-flags.h> |
13 | 14 | ||
14 | /* PAGE_SHIFT determines the page size */ | 15 | /* PAGE_SHIFT determines the page size */ |
diff --git a/include/asm-um/ptrace-generic.h b/include/asm-um/ptrace-generic.h index 919581d713b..6aefcd32fc6 100644 --- a/include/asm-um/ptrace-generic.h +++ b/include/asm-um/ptrace-generic.h | |||
@@ -9,6 +9,7 @@ | |||
9 | #ifndef __ASSEMBLY__ | 9 | #ifndef __ASSEMBLY__ |
10 | 10 | ||
11 | #include "asm/arch/ptrace-abi.h" | 11 | #include "asm/arch/ptrace-abi.h" |
12 | #include <asm/user.h> | ||
12 | #include "sysdep/ptrace.h" | 13 | #include "sysdep/ptrace.h" |
13 | 14 | ||
14 | struct pt_regs { | 15 | struct pt_regs { |
@@ -35,12 +36,14 @@ struct pt_regs { | |||
35 | 36 | ||
36 | struct task_struct; | 37 | struct task_struct; |
37 | 38 | ||
39 | extern long subarch_ptrace(struct task_struct *child, long request, long addr, | ||
40 | long data); | ||
38 | extern unsigned long getreg(struct task_struct *child, int regno); | 41 | extern unsigned long getreg(struct task_struct *child, int regno); |
39 | extern int putreg(struct task_struct *child, int regno, unsigned long value); | 42 | extern int putreg(struct task_struct *child, int regno, unsigned long value); |
40 | extern int get_fpregs(unsigned long buf, struct task_struct *child); | 43 | extern int get_fpregs(struct user_i387_struct __user *buf, |
41 | extern int set_fpregs(unsigned long buf, struct task_struct *child); | 44 | struct task_struct *child); |
42 | extern int get_fpxregs(unsigned long buf, struct task_struct *child); | 45 | extern int set_fpregs(struct user_i387_struct __user *buf, |
43 | extern int set_fpxregs(unsigned long buf, struct task_struct *tsk); | 46 | struct task_struct *child); |
44 | 47 | ||
45 | extern void show_regs(struct pt_regs *regs); | 48 | extern void show_regs(struct pt_regs *regs); |
46 | 49 | ||
diff --git a/include/asm-um/ptrace-i386.h b/include/asm-um/ptrace-i386.h index 65102c88344..b2d24c5ea2c 100644 --- a/include/asm-um/ptrace-i386.h +++ b/include/asm-um/ptrace-i386.h | |||
@@ -10,6 +10,7 @@ | |||
10 | 10 | ||
11 | #include "linux/compiler.h" | 11 | #include "linux/compiler.h" |
12 | #include "asm/ptrace-generic.h" | 12 | #include "asm/ptrace-generic.h" |
13 | #include <asm/user.h> | ||
13 | #include "sysdep/ptrace.h" | 14 | #include "sysdep/ptrace.h" |
14 | 15 | ||
15 | #define PT_REGS_EAX(r) UPT_EAX(&(r)->regs) | 16 | #define PT_REGS_EAX(r) UPT_EAX(&(r)->regs) |
@@ -45,6 +46,11 @@ | |||
45 | */ | 46 | */ |
46 | struct user_desc; | 47 | struct user_desc; |
47 | 48 | ||
49 | extern int get_fpxregs(struct user_fxsr_struct __user *buf, | ||
50 | struct task_struct *child); | ||
51 | extern int set_fpxregs(struct user_fxsr_struct __user *buf, | ||
52 | struct task_struct *tsk); | ||
53 | |||
48 | extern int ptrace_get_thread_area(struct task_struct *child, int idx, | 54 | extern int ptrace_get_thread_area(struct task_struct *child, int idx, |
49 | struct user_desc __user *user_desc); | 55 | struct user_desc __user *user_desc); |
50 | 56 | ||