diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sh/system.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asm-sh/system.h b/include/asm-sh/system.h index e7e96ee0c8a5..82f3e229e621 100644 --- a/include/asm-sh/system.h +++ b/include/asm-sh/system.h | |||
@@ -255,6 +255,15 @@ static inline void *set_exception_table_evt(unsigned int evt, void *handler) | |||
255 | return set_exception_table_vec(evt >> 5, handler); | 255 | return set_exception_table_vec(evt >> 5, handler); |
256 | } | 256 | } |
257 | 257 | ||
258 | /* | ||
259 | * SH-2A has both 16 and 32-bit opcodes, do lame encoding checks. | ||
260 | */ | ||
261 | #ifdef CONFIG_CPU_SH2A | ||
262 | extern unsigned int instruction_size(unsigned int insn); | ||
263 | #else | ||
264 | #define instruction_size(insn) (2) | ||
265 | #endif | ||
266 | |||
258 | /* XXX | 267 | /* XXX |
259 | * disable hlt during certain critical i/o operations | 268 | * disable hlt during certain critical i/o operations |
260 | */ | 269 | */ |