From: danh-arm Date: Thu, 8 May 2014 11:01:24 +0000 (+0100) Subject: Merge pull request #62 from athoelke/set-little-endian-v2 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=18a17e6a4a146452dc3fa7dd8ad6aecf3a575e80;p=project%2Fbcm63xx%2Fatf.git Merge pull request #62 from athoelke/set-little-endian-v2 Set processor endianness immediately after RESET v2 --- 18a17e6a4a146452dc3fa7dd8ad6aecf3a575e80 diff --cc bl1/aarch64/bl1_arch_setup.c index a1ebbdb2,1b14246b..5725bac1 --- a/bl1/aarch64/bl1_arch_setup.c +++ b/bl1/aarch64/bl1_arch_setup.c @@@ -39,12 -39,10 +39,11 @@@ void bl1_arch_setup(void { unsigned long tmp_reg = 0; - /* Enable alignment checks and set the exception endianess to LE */ + /* Enable alignment checks */ tmp_reg = read_sctlr_el3(); tmp_reg |= (SCTLR_A_BIT | SCTLR_SA_BIT); - tmp_reg &= ~SCTLR_EE_BIT; write_sctlr_el3(tmp_reg); + isb(); /* * Enable HVCs, route FIQs to EL3, set the next EL to be AArch64, route