diff options
Diffstat (limited to 'include/asm-m68k/thread_info.h')
-rw-r--r-- | include/asm-m68k/thread_info.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/include/asm-m68k/thread_info.h b/include/asm-m68k/thread_info.h index 2aed24f6fd2e..4fdbf55f95e5 100644 --- a/include/asm-m68k/thread_info.h +++ b/include/asm-m68k/thread_info.h | |||
@@ -2,7 +2,6 @@ | |||
2 | #define _ASM_M68K_THREAD_INFO_H | 2 | #define _ASM_M68K_THREAD_INFO_H |
3 | 3 | ||
4 | #include <asm/types.h> | 4 | #include <asm/types.h> |
5 | #include <asm/processor.h> | ||
6 | #include <asm/page.h> | 5 | #include <asm/page.h> |
7 | 6 | ||
8 | struct thread_info { | 7 | struct thread_info { |
@@ -35,14 +34,21 @@ struct thread_info { | |||
35 | #define free_thread_info(ti) free_pages((unsigned long)(ti),1) | 34 | #define free_thread_info(ti) free_pages((unsigned long)(ti),1) |
36 | #endif /* PAGE_SHIFT == 13 */ | 35 | #endif /* PAGE_SHIFT == 13 */ |
37 | 36 | ||
38 | //#define init_thread_info (init_task.thread.info) | 37 | #define init_thread_info (init_task.thread.info) |
39 | #define init_stack (init_thread_union.stack) | 38 | #define init_stack (init_thread_union.stack) |
40 | 39 | ||
41 | #define current_thread_info() (current->thread_info) | 40 | #define task_thread_info(tsk) (&(tsk)->thread.info) |
42 | 41 | #define current_thread_info() task_thread_info(current) | |
43 | 42 | ||
44 | #define __HAVE_THREAD_FUNCTIONS | 43 | #define __HAVE_THREAD_FUNCTIONS |
45 | 44 | ||
45 | #define setup_thread_stack(p, org) ({ \ | ||
46 | *(struct task_struct **)(p)->thread_info = (p); \ | ||
47 | task_thread_info(p)->task = (p); \ | ||
48 | }) | ||
49 | |||
50 | #define end_of_stack(p) ((unsigned long *)(p)->thread_info + 1) | ||
51 | |||
46 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ | 52 | #define TIF_SYSCALL_TRACE 0 /* syscall trace active */ |
47 | #define TIF_DELAYED_TRACE 1 /* single step a syscall */ | 53 | #define TIF_DELAYED_TRACE 1 /* single step a syscall */ |
48 | #define TIF_NOTIFY_RESUME 2 /* resumption notification requested */ | 54 | #define TIF_NOTIFY_RESUME 2 /* resumption notification requested */ |