diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2005-11-13 19:06:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-13 21:14:14 -0500 |
commit | 3b66a1edb01b82269a668a478625765b1fa4936f (patch) | |
tree | 417ead0264e34fdd1ec345a26d8670427be4829c /include/asm-m68k/processor.h | |
parent | abd03753bd1532c05eb13231569a5257b007e29c (diff) |
[PATCH] m68k: convert thread flags to use bit fields
Remove task_work structure, use the standard thread flags functions and use
shifts in entry.S to test the thread flags. Add a few local labels to entry.S
to allow gas to generate short jumps.
Finally it changes a number of inline functions in thread_info.h to macros to
delay the current_thread_info() usage, which requires on m68k a structure
(task_struct) not yet defined at this point.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Cc: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-m68k/processor.h')
-rw-r--r-- | include/asm-m68k/processor.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/asm-m68k/processor.h b/include/asm-m68k/processor.h index 84b4b26df04c..7982285e84ed 100644 --- a/include/asm-m68k/processor.h +++ b/include/asm-m68k/processor.h | |||
@@ -56,17 +56,6 @@ static inline void wrusp(unsigned long usp) | |||
56 | #endif | 56 | #endif |
57 | #define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr) | 57 | #define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr) |
58 | 58 | ||
59 | struct task_work { | ||
60 | unsigned char sigpending; | ||
61 | unsigned char notify_resume; /* request for notification on | ||
62 | userspace execution resumption */ | ||
63 | char need_resched; | ||
64 | unsigned char delayed_trace; /* single step a syscall */ | ||
65 | unsigned char syscall_trace; /* count of syscall interceptors */ | ||
66 | unsigned char memdie; /* task was selected to be killed */ | ||
67 | unsigned char pad[2]; | ||
68 | }; | ||
69 | |||
70 | struct thread_struct { | 59 | struct thread_struct { |
71 | unsigned long ksp; /* kernel stack pointer */ | 60 | unsigned long ksp; /* kernel stack pointer */ |
72 | unsigned long usp; /* user stack pointer */ | 61 | unsigned long usp; /* user stack pointer */ |
@@ -79,7 +68,6 @@ struct thread_struct { | |||
79 | unsigned long fp[8*3]; | 68 | unsigned long fp[8*3]; |
80 | unsigned long fpcntl[3]; /* fp control regs */ | 69 | unsigned long fpcntl[3]; /* fp control regs */ |
81 | unsigned char fpstate[FPSTATESIZE]; /* floating point state */ | 70 | unsigned char fpstate[FPSTATESIZE]; /* floating point state */ |
82 | struct task_work work; | ||
83 | struct thread_info info; | 71 | struct thread_info info; |
84 | }; | 72 | }; |
85 | 73 | ||