no-unalligned-access.patch 805 B

1234567891011121314151617181920212223
  1. diff --git a/arch/arm/cpu/armv7/config.mk b/arch/arm/cpu/armv7/config.mk
  2. index d01f3d9..c048531 100644
  3. --- a/arch/arm/cpu/armv7/config.mk
  4. +++ b/arch/arm/cpu/armv7/config.mk
  5. @@ -10,9 +10,12 @@
  6. PF_CPPFLAGS_ARMV7 := $(call cc-option, -march=armv7-a, -march=armv5)
  7. PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARMV7)
  8. -# SEE README.arm-unaligned-accesses
  9. +# On supported platforms we set the bit which causes us to trap on unaligned
  10. +# memory access. This is the opposite of what the compiler expects to be
  11. +# the default so we must pass in -mno-unaligned-access so that it is aware
  12. +# of our decision.
  13. PF_NO_UNALIGNED := $(call cc-option, -mno-unaligned-access,)
  14. -PLATFORM_NO_UNALIGNED := $(PF_NO_UNALIGNED)
  15. +PLATFORM_CPPFLAGS += $(PF_NO_UNALIGNED)
  16. ifneq ($(CONFIG_IMX_CONFIG),)
  17. ifdef CONFIG_SPL
  18. --
  19. 1.7.9.5