Replace disable_mmu with assembler version
authorAndrew Thoelke <andrew.thoelke@arm.com>
Mon, 28 Apr 2014 11:06:18 +0000 (12:06 +0100)
committerAndrew Thoelke <andrew.thoelke@arm.com>
Wed, 7 May 2014 10:23:50 +0000 (11:23 +0100)
commit2f5dcfef1db42f3b073ae657f8a94925abecd768
tree378833fa34bed975066532e5b01cd85390cdc144
parent8cec598ba3b689b86d9dfc58bca5610bdc48f55a
Replace disable_mmu with assembler version

disable_mmu() cannot work as a C function as there is no control
over data accesses generated by the compiler between disabling and
cleaning the data cache. This results in reading stale data from
main memory.

As assembler version is provided for EL3, and a variant that also
disables the instruction cache which is now used by the BL1
exception handling function.

Fixes ARM-software/tf-issues#147

Change-Id: I0cf394d2579a125a23c2f2989c2e92ace6ddb1a6
bl1/aarch64/bl1_exceptions.S
include/lib/aarch64/arch_helpers.h
lib/aarch64/misc_helpers.S
plat/fvp/aarch64/plat_common.c
plat/fvp/platform.h