1
#ifndef _ASM_M68K_THREAD_INFO_H
2
#define _ASM_M68K_THREAD_INFO_H
5
#include <asm/asm-offsets.h>
11
#include <asm/current.h>
14
struct task_struct *task; /* main task structure */
16
struct exec_domain *exec_domain; /* execution domain */
17
int preempt_count; /* 0 => preemptable, <0 => BUG */
18
__u32 cpu; /* should always be 0 on m68k */
19
struct restart_block restart_block;
21
#endif /* __ASSEMBLY__ */
23
#define PREEMPT_ACTIVE 0x4000000
25
#define INIT_THREAD_INFO(tsk) \
28
.exec_domain = &default_exec_domain, \
29
.preempt_count = INIT_PREEMPT_COUNT, \
31
.fn = do_no_restart_syscall, \
35
/* THREAD_SIZE should be 8k, so handle differently for 4k and 8k machines */
36
#define THREAD_SIZE_ORDER (13 - PAGE_SHIFT)
38
#define init_thread_info (init_task.thread.info)
39
#define init_stack (init_thread_union.stack)
42
#define task_thread_info(tsk) ((struct thread_info *) NULL)
44
#define task_thread_info(tsk) ((struct thread_info *)((char *)tsk+TASK_TINFO))
47
#define task_stack_page(tsk) ((tsk)->stack)
48
#define current_thread_info() task_thread_info(current)
50
#define __HAVE_THREAD_FUNCTIONS
52
#define setup_thread_stack(p, org) ({ \
53
*(struct task_struct **)(p)->stack = (p); \
54
task_thread_info(p)->task = (p); \
57
#define end_of_stack(p) ((unsigned long *)(p)->stack + 1)
59
/* entry.S relies on these definitions!
60
* bits 0-7 are tested at every exception exit
61
* bits 8-15 are also tested at syscall exit
63
#define TIF_SIGPENDING 6 /* signal pending */
64
#define TIF_NEED_RESCHED 7 /* rescheduling necessary */
65
#define TIF_DELAYED_TRACE 14 /* single step a syscall */
66
#define TIF_SYSCALL_TRACE 15 /* syscall trace active */
68
#define TIF_FREEZE 17 /* thread is freezing for suspend */
70
#endif /* _ASM_M68K_THREAD_INFO_H */