diff options
| author | Paul Mackerras <paulus@tango.paulus.ozlabs.org> | 2002-02-12 20:26:28 +1100 |
|---|---|---|
| committer | Paul Mackerras <paulus@quango.(none)> | 2002-02-12 20:26:28 +1100 |
| commit | 429c7cd2f91a46a5368a7eb3ba294e29727aeda8 (patch) | |
| tree | 29b6fe01a8fbd67ab819ec8523bb3940dceddbae /include/asm-ppc/processor.h | |
| parent | 9b3882db851cf53923237d3291fe089c6aeb8cef (diff) | |
Update PPC for recent generic changes; in particular adapt to
having the thread_info struct at the base of the stack and
the task_struct elsewhere.
Diffstat (limited to 'include/asm-ppc/processor.h')
| -rw-r--r-- | include/asm-ppc/processor.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h index 843b81218ed4..0ed0a0070075 100644 --- a/include/asm-ppc/processor.h +++ b/include/asm-ppc/processor.h @@ -12,6 +12,7 @@ #define current_text_addr() ({ __label__ _l; _l: &&_l;}) #include <linux/config.h> +#include <linux/stringify.h> #include <asm/ptrace.h> #include <asm/types.h> @@ -558,7 +559,6 @@ #define _CHRP_Motorola 0x04 /* motorola chrp, the cobra */ #define _CHRP_IBM 0x05 /* IBM chrp, the longtrail and longtrail 2 */ -#define __stringify(a) #a #define _GLOBAL(n)\ .stabs __stringify(n:F-1),N_FUN,0,0,n;\ .globl n;\ @@ -743,22 +743,10 @@ static inline unsigned int __pack_fe01(unsigned int fpmode) return ((fpmode << 10) & MSR_FE0) | ((fpmode << 8) & MSR_FE1); } -/* - * NOTE! The task struct and the stack go together - */ -#define THREAD_SIZE (2*PAGE_SIZE) -#define alloc_task_struct() \ - ((struct task_struct *) __get_free_pages(GFP_KERNEL,1)) -#define free_task_struct(p) free_pages((unsigned long)(p),1) -#define get_task_struct(tsk) atomic_inc(&virt_to_page(tsk)->count) - /* in process.c - for early bootup debug -- Cort */ int ll_printk(const char *, ...); void ll_puts(const char *); -#define init_task (init_task_union.task) -#define init_stack (init_task_union.stack) - /* In misc.c */ void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val); |
