patch-2.3.29 linux/include/asm-arm/proc-armv/processor.h

Next file: linux/include/asm-arm/processor.h
Previous file: linux/include/asm-arm/proc-armv/cache.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/include/asm-arm/proc-armv/processor.h linux/include/asm-arm/proc-armv/processor.h
@@ -57,11 +57,13 @@
 	regs->ARM_r0 = stack[0];	/* r0 (argc) */			\
 })
 
+#define KSTK_EIP(tsk)	(((unsigned long *)(4096+(unsigned long)(tsk)))[1021])
+#define KSTK_ESP(tsk)	(((unsigned long *)(4096+(unsigned long)(tsk)))[1019])
+
 /* Allocation and freeing of basic task resources. */
 /*
  * NOTE! The task struct and the stack go together
  */
-#define THREAD_SIZE	(PAGE_SIZE * 2)
 #define ll_alloc_task_struct() ((struct task_struct *) __get_free_pages(GFP_KERNEL,1))
 #define ll_free_task_struct(p) free_pages((unsigned long)(p),1)
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)