diff options
Diffstat (limited to 'include/asm-um/processor-generic.h')
-rw-r--r-- | include/asm-um/processor-generic.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/asm-um/processor-generic.h b/include/asm-um/processor-generic.h index 126df73f5401..d40eae9ec9a2 100644 --- a/include/asm-um/processor-generic.h +++ b/include/asm-um/processor-generic.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2000, 2001, 2002 Jeff Dike (jdike@karaya.com) | 2 | * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
3 | * Licensed under the GPL | 3 | * Licensed under the GPL |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -17,11 +17,14 @@ 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 | 20 | struct task_struct *saved_task; |
21 | /* | ||
22 | * 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 / | 23 | * 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 | 24 | * 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). */ | 25 | * from kernelspace (i.e. kernel_thread() or fork_idle(), |
24 | struct task_struct *saved_task; | 26 | * as of 2.6.11). |
27 | */ | ||
25 | int forking; | 28 | int forking; |
26 | int nsyscalls; | 29 | int nsyscalls; |
27 | struct pt_regs regs; | 30 | struct pt_regs regs; |
@@ -56,7 +59,7 @@ struct thread_struct { | |||
56 | { \ | 59 | { \ |
57 | .forking = 0, \ | 60 | .forking = 0, \ |
58 | .nsyscalls = 0, \ | 61 | .nsyscalls = 0, \ |
59 | .regs = EMPTY_REGS, \ | 62 | .regs = EMPTY_REGS, \ |
60 | .fault_addr = NULL, \ | 63 | .fault_addr = NULL, \ |
61 | .prev_sched = NULL, \ | 64 | .prev_sched = NULL, \ |
62 | .temp_stack = 0, \ | 65 | .temp_stack = 0, \ |