Go to the documentation of this file. 1 #ifndef _ASM_M32R_PROCESSOR_H
2 #define _ASM_M32R_PROCESSOR_H
16 #include <linux/kernel.h>
17 #include <asm/cache.h>
18 #include <asm/ptrace.h>
24 #define current_text_addr() ({ __label__ _l; _l: &&_l; })
48 #define current_cpu_data cpu_data[smp_processor_id()]
50 #define cpu_data (&boot_cpu_data)
51 #define current_cpu_data boot_cpu_data
58 #define TASK_SIZE (0x80000000UL)
60 #define TASK_SIZE (0x00400000UL)
64 #define STACK_TOP TASK_SIZE
65 #define STACK_TOP_MAX STACK_TOP
71 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
94 #define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
96 #define INIT_THREAD { \
105 #define USERPS_BPSW (M32R_PSW_BSM|M32R_PSW_BIE|M32R_PSW_BPM)
107 #define start_thread(regs, new_pc, new_spu) \
109 regs->psw = (regs->psw | USERPS_BPSW) & 0x0000FFFFUL; \
110 regs->bpc = new_pc; \
111 regs->spu = new_spu; \
133 #define copy_segments(p, mm) do { } while (0)
134 #define release_segments(mm) do { } while (0)
137 #define KSTK_EIP(tsk) ((tsk)->thread.lr)
138 #define KSTK_ESP(tsk) ((tsk)->thread.sp)
140 #define cpu_relax() barrier()