Go to the documentation of this file. 1 #ifndef __ASM_CRIS_ARCH_PROCESSOR_H
2 #define __ASM_CRIS_ARCH_PROCESSOR_H
8 #define current_text_addr() ({void *pc; __asm__ ("move.d $pc,%0" : "=rm" (pc)); pc; })
31 #ifdef CONFIG_CRIS_LOW_MAP
32 #define TASK_SIZE (0x50000000UL)
34 #define TASK_SIZE (0xA0000000UL)
37 #define INIT_THREAD { \
40 #define KSTK_EIP(tsk) \
42 unsigned long eip = 0; \
43 unsigned long regs = (unsigned long)task_pt_regs(tsk); \
44 if (regs > PAGE_SIZE && \
45 virt_addr_valid(regs)) \
46 eip = ((struct pt_regs *)regs)->irp; \
55 #define start_thread(regs, ip, usp) do { \
57 regs->dccr |= 1 << U_DCCR_BITNR; \
66 #define arch_fixup(regs) \
67 regs->frametype = CRIS_FRAME_NORMAL;