Go to the documentation of this file. 1 #ifndef _ASM_CRIS_ARCH_PROCESSOR_H
2 #define _ASM_CRIS_ARCH_PROCESSOR_H
6 #define current_text_addr() \
7 ({void *pc; __asm__ __volatile__ ("lapcq .,%0" : "=rm" (pc)); pc;})
26 #define TASK_SIZE (0xB0000000UL)
29 #define INIT_THREAD { 0, 0, (1 << I_CCS_BITNR) }
31 #define KSTK_EIP(tsk) \
33 unsigned long eip = 0; \
34 unsigned long regs = (unsigned long)task_pt_regs(tsk); \
35 if (regs > PAGE_SIZE && virt_addr_valid(regs)) \
36 eip = ((struct pt_regs *)regs)->erp; \
44 #define start_thread(regs, ip, usp) \
47 regs->ccs |= 1 << (U_CCS_BITNR + CCS_SHIFT); \
52 #define arch_fixup(regs) {};