Go to the documentation of this file.
10 #ifndef __ASM_CRIS_PROCESSOR_H
11 #define __ASM_CRIS_PROCESSOR_H
14 #include <asm/ptrace.h>
15 #include <arch/processor.h>
16 #include <arch/system.h>
20 #define STACK_TOP TASK_SIZE
21 #define STACK_TOP_MAX STACK_TOP
26 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
32 #define THREAD_SIZE PAGE_SIZE
33 #define THREAD_SIZE_ORDER (0)
43 #define user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - 1)
49 #define task_pt_regs(task) user_regs(task_thread_info(task))
50 #define current_regs() task_pt_regs(current)
56 #define KSTK_ESP(tsk) ((tsk) == current ? rdusp() : (tsk)->thread.usp)
66 #define init_stack (init_thread_union.stack)
68 #define cpu_relax() barrier()
73 #define HAVE_DISABLE_HLT