X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-m68k%2Fthread_info.h;h=d635a375248896149ba6a14fcfc7392ca62873f0;hb=681e14730c73cc2c71af282c001de6bc71c22f00;hp=c4d622a57dfbf5d3bfb9913bfa257bc8c0ab58da;hpb=8b87e1baff24e586c3fe6c168843d213119bf4dd;p=powerpc.git diff --git a/include/asm-m68k/thread_info.h b/include/asm-m68k/thread_info.h index c4d622a57d..d635a37524 100644 --- a/include/asm-m68k/thread_info.h +++ b/include/asm-m68k/thread_info.h @@ -37,17 +37,17 @@ struct thread_info { #define init_stack (init_thread_union.stack) #define task_thread_info(tsk) (&(tsk)->thread.info) -#define task_stack_page(tsk) ((void *)(tsk)->thread_info) +#define task_stack_page(tsk) ((tsk)->stack) #define current_thread_info() task_thread_info(current) #define __HAVE_THREAD_FUNCTIONS #define setup_thread_stack(p, org) ({ \ - *(struct task_struct **)(p)->thread_info = (p); \ + *(struct task_struct **)(p)->stack = (p); \ task_thread_info(p)->task = (p); \ }) -#define end_of_stack(p) ((unsigned long *)(p)->thread_info + 1) +#define end_of_stack(p) ((unsigned long *)(p)->stack + 1) /* entry.S relies on these definitions! * bits 0-7 are tested at every exception exit