coreboot/src/arch/arm
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
..
armv4 Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
armv7 armv7/arm64: remove timestamp.c 2015-08-31 13:55:03 +00:00
include armv7: Word-sized/half-word-sized memory operations for 32/16 bit read/write 2015-10-17 18:10:29 +00:00
libgcc arm: add __umoddi3() to libgcc implementation 2015-07-09 00:31:39 +02:00
asmlib.h arm: Update mem* functions to newer versions 2014-09-22 18:47:42 +02:00
boot.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
clock.c coreboot arm: Define function for setting cntfrq register 2015-03-02 22:19:46 +01:00
cpu.c Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
div0.c Drop "See file CREDITS..." comment 2015-09-07 15:54:50 +00:00
eabi_compat.c arm: enhance eabi compat functions 2015-07-09 00:30:41 +02:00
id.S
Kconfig Kconfig: Fix incorrect CONFIG_STACK_SIZE values for X86 and ARM64 2015-04-15 00:22:13 +02:00
Makefile.inc vboot: remove remnants of VBOOT_STUB 2015-10-11 23:55:50 +00:00
memcpy.S arm: Put assembly functions into separate sections 2014-11-13 06:49:41 +01:00
memmove.S arm: Put assembly functions into separate sections 2014-11-13 06:49:41 +01:00
memset.S arm: Put assembly functions into separate sections 2014-11-13 06:49:41 +01:00
stages.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00
tables.c Remove address from GPLv2 headers 2015-05-21 20:50:25 +02:00