Go to the documentation of this file. 1 #ifndef __ASM_SH_PROCESSOR_H
2 #define __ASM_SH_PROCESSOR_H
4 #include <asm/cpu-features.h>
5 #include <asm/segment.h>
94 #define boot_cpu_data cpu_data[0]
95 #define current_cpu_data cpu_data[smp_processor_id()]
96 #define raw_current_cpu_data cpu_data[raw_smp_processor_id()]
98 #define cpu_sleep() __asm__ __volatile__ ("sleep" : : : "memory")
99 #define cpu_relax() barrier()
122 #define GET_UNALIGN_CTL(tsk, addr) get_unalign_ctl((tsk), (addr))
123 #define SET_UNALIGN_CTL(tsk, val) set_unalign_ctl((tsk), (val))
133 #define SH_THREAD_UAC_NOPRINT (1 << 0)
134 #define SH_THREAD_UAC_SIGBUS (1 << 1)
135 #define SH_THREAD_UAC_MASK (SH_THREAD_UAC_NOPRINT | SH_THREAD_UAC_SIGBUS)
138 #define MODE_PIN0 (1 << 0)
139 #define MODE_PIN1 (1 << 1)
140 #define MODE_PIN2 (1 << 2)
141 #define MODE_PIN3 (1 << 3)
142 #define MODE_PIN4 (1 << 4)
143 #define MODE_PIN5 (1 << 5)
144 #define MODE_PIN6 (1 << 6)
145 #define MODE_PIN7 (1 << 7)
146 #define MODE_PIN8 (1 << 8)
147 #define MODE_PIN9 (1 << 9)
148 #define MODE_PIN10 (1 << 10)
149 #define MODE_PIN11 (1 << 11)
150 #define MODE_PIN12 (1 << 12)
151 #define MODE_PIN13 (1 << 13)
152 #define MODE_PIN14 (1 << 14)
153 #define MODE_PIN15 (1 << 15)
158 #ifdef CONFIG_VSYSCALL
161 #define vsyscall_init() do { } while (0)
167 #ifdef CONFIG_CPU_SH2A
169 #elif defined(CONFIG_SUPERH32)
170 #define instruction_size(insn) (2)
172 #define instruction_size(insn) (4)
177 #ifdef CONFIG_SUPERH32
178 # include <asm/processor_32.h>
180 # include <asm/processor_64.h>