Go to the documentation of this file.
21 #ifndef _ASM_PROCESSOR_H
22 #define _ASM_PROCESSOR_H
26 #include <asm/mem-layout.h>
27 #include <asm/registers.h>
31 #define current_text_addr() ({ __label__ _l; _l: &&_l; })
56 #define INIT_THREAD { \
59 #define cpu_relax() __vmyield()
74 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE/3))
77 #define task_pt_regs(task) \
78 ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
80 #define KSTK_EIP(tsk) (pt_elr(task_pt_regs(tsk)))
81 #define KSTK_ESP(tsk) (pt_psp(task_pt_regs(tsk)))