coreboot/src/arch/arm/include
Paul Kocialkowski 3414561f00 armv7: Word-sized/half-word-sized memory operations for 32/16 bit read/write
Some registers only allow word-sized or half-word-sized operations and will
cause a data fault when accessed with byte-sized operations.
However, the compiler may or may not break such an operation into smaller
(byte-sized) chunks. Thus, we need to reliably perform word-sized operations for
32 bit read/write and half-word-sized operations for 16 bit read/write.

This is particularly the case on the rk3288 SRAM registers, where the watchdog
tombstone is stored. Moving to GCC 5.2.0 introduced a change of strategy in the
compiler, where a 32 bit read would be broken into byte-sized chunks, which
caused a data fault when accessing the watchdog tombstone register.

The definitions for byte-sized memory operations are also adapted to stay
consistent with the rest.

Change-Id: I1fb3fc139e0a813acf9d70f14386a9603c9f9ede
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-on: http://review.coreboot.org/11698
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2015-10-17 18:10:29 +00:00
..
arch arm, arm64, mips: Add rough static stack size checks with -Wstack-usage 2015-07-29 20:25:59 +02:00
armv4/arch Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
armv7/arch armv7: Word-sized/half-word-sized memory operations for 32/16 bit read/write 2015-10-17 18:10:29 +00:00
smp ARM: Generalize armv7 as arm. 2014-09-08 18:59:23 +02:00
armv7.h Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
bootblock_common.h Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
clocks.h Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
stdint.h src/arch/*/include/stdint.h: Provide definitions for bool type 2015-02-02 20:29:23 +01:00