diff options
Diffstat (limited to 'include/asm-um/processor-generic.h')
-rw-r--r-- | include/asm-um/processor-generic.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index 038ba6fc88b8..b2fc94fbc2d9 100644 --- a/include/asm-um/processor-generic.h +++ b/include/asm-um/processor-generic.h | |||
@@ -17,12 +17,13 @@ struct task_struct; | |||
17 | struct mm_struct; | 17 | struct mm_struct; |
18 | 18 | ||
19 | struct thread_struct { | 19 | struct thread_struct { |
20 | /* This flag is set to 1 before calling do_fork (and analyzed in | ||
21 | * copy_thread) to mark that we are begin called from userspace (fork / | ||
22 | * vfork / clone), and reset to 0 after. It is left to 0 when called | ||
23 | * from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */ | ||
20 | int forking; | 24 | int forking; |
21 | int nsyscalls; | 25 | int nsyscalls; |
22 | struct pt_regs regs; | 26 | struct pt_regs regs; |
23 | unsigned long cr2; | ||
24 | int err; | ||
25 | unsigned long trap_no; | ||
26 | int singlestep_syscall; | 27 | int singlestep_syscall; |
27 | void *fault_addr; | 28 | void *fault_addr; |
28 | void *fault_catcher; | 29 | void *fault_catcher; |
@@ -70,8 +71,6 @@ struct thread_struct { | |||
70 | .forking = 0, \ | 71 | .forking = 0, \ |
71 | .nsyscalls = 0, \ | 72 | .nsyscalls = 0, \ |
72 | .regs = EMPTY_REGS, \ | 73 | .regs = EMPTY_REGS, \ |
73 | .cr2 = 0, \ | ||
74 | .err = 0, \ | ||
75 | .fault_addr = NULL, \ | 74 | .fault_addr = NULL, \ |
76 | .prev_sched = NULL, \ | 75 | .prev_sched = NULL, \ |
77 | .temp_stack = 0, \ | 76 | .temp_stack = 0, \ |
@@ -89,7 +88,11 @@ extern struct task_struct *alloc_task_struct(void); | |||
89 | extern void release_thread(struct task_struct *); | 88 | extern void release_thread(struct task_struct *); |
90 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); | 89 | extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags); |
91 | extern void dump_thread(struct pt_regs *regs, struct user *u); | 90 | extern void dump_thread(struct pt_regs *regs, struct user *u); |
92 | extern void prepare_to_copy(struct task_struct *tsk); | 91 | |
92 | static inline void prepare_to_copy(struct task_struct *tsk) | ||
93 | { | ||
94 | } | ||
95 | |||
93 | 96 | ||
94 | extern unsigned long thread_saved_pc(struct task_struct *t); | 97 | extern unsigned long thread_saved_pc(struct task_struct *t); |
95 | 98 | ||