Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 1 | #ifndef _ASM_SH_UNALIGNED_H |
| 2 | #define _ASM_SH_UNALIGNED_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Paul Mundt | 95b781c | 2008-11-26 00:29:58 +0900 | [diff] [blame] | 4 | #ifdef CONFIG_CPU_SH4A |
| 5 | /* SH-4A can handle unaligned loads in a relatively neutered fashion. */ |
| 6 | #include <asm/unaligned-sh4a.h> |
| 7 | #else |
| 8 | /* Otherwise, SH can't handle unaligned accesses. */ |
Paul Mundt | 508fb69 | 2009-06-14 23:24:43 +0900 | [diff] [blame^] | 9 | #include <asm-generic/unaligned.h> |
Paul Mundt | 95b781c | 2008-11-26 00:29:58 +0900 | [diff] [blame] | 10 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Harvey Harrison | 6510d41 | 2008-04-29 01:03:30 -0700 | [diff] [blame] | 12 | #endif /* _ASM_SH_UNALIGNED_H */ |