![Paul Mundt](/assets/img/avatar_default.png)
This plugs in some register alignment helpers for the shared flushers, allowing them to also be used on SH-5. The main rationale here is that in the SH-5 case we have a variable ABI, where the pointer size may not equal the register width. This register extension is taken care of by the SH-5 code already today, and is otherwise unused on the SH-4 code. This combines the two and allows us to kill off the SH-5 implementation. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
24 lines
418 B
C
24 lines
418 B
C
#ifndef __ASM_SH_TYPES_H
|
|
#define __ASM_SH_TYPES_H
|
|
|
|
#include <asm-generic/types.h>
|
|
|
|
/*
|
|
* These aren't exported outside the kernel to avoid name space clashes
|
|
*/
|
|
#ifdef __KERNEL__
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#ifdef CONFIG_SUPERH32
|
|
typedef u16 insn_size_t;
|
|
typedef u32 reg_size_t;
|
|
#else
|
|
typedef u32 insn_size_t;
|
|
typedef u64 reg_size_t;
|
|
#endif
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
#endif /* __KERNEL__ */
|
|
|
|
#endif /* __ASM_SH_TYPES_H */
|