diff options
author | Lucas Stach <dev@lynxeye.de> | 2013-05-10 20:29:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-23 09:30:00 +0200 |
commit | eb7d85c29170c7d9b1e2a21769db1283d1064b15 (patch) | |
tree | 3acfcf0f5acb642eb64c83618f9e08a456ba7843 | |
parent | 7904d90061f698bfe60e9f3ffdf2e7462c54f169 (diff) | |
download | barebox-eb7d85c29170c7d9b1e2a21769db1283d1064b15.tar.gz |
arm: properly init alignment trap bit
On ARMv7 the intention is to disable the alignment trap to be able to
use hardware assisted unaligned load/stores. Fix the init to do the
right thing.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/arm/include/asm/barebox-arm-head.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/barebox-arm-head.h b/arch/arm/include/asm/barebox-arm-head.h index 9385415233..9a8cc87716 100644 --- a/arch/arm/include/asm/barebox-arm-head.h +++ b/arch/arm/include/asm/barebox-arm-head.h @@ -22,7 +22,7 @@ static inline void arm_cpu_lowlevel_init(void) #if __LINUX_ARM_ARCH__ >= 6 r |= CR_U; - r &= CR_A; + r &= ~CR_A; #else r |= CR_A; #endif |