Go to the documentation of this file. 1 #ifndef _ASM_SCORE_PROCESSOR_H
2 #define _ASM_SCORE_PROCESSOR_H
7 #include <asm/segment.h>
19 unsigned long pc,
unsigned long sp);
25 #define current_text_addr() ({ __label__ _l; _l: &&_l; })
27 #define cpu_relax() barrier()
28 #define release_thread(thread) do {} while (0)
34 #define TASK_SIZE 0x7fff8000UL
40 #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE))
43 #define STACK_TOP TASK_SIZE
44 #define STACK_TOP_MAX TASK_SIZE
79 #define INIT_THREAD { \
98 #define kstk_tos(tsk) \
99 ((unsigned long)task_stack_page(tsk) + THREAD_SIZE - 32)
100 #define task_pt_regs(tsk) ((struct pt_regs *)kstk_tos(tsk) - 1)
102 #define KSTK_EIP(tsk) (task_pt_regs(tsk)->cp0_epc)
103 #define KSTK_ESP(tsk) (task_pt_regs(tsk)->regs[29])