diff options
author | Vikram Kanigiri <vikram.kanigiri@arm.com> | 2014-05-13 14:42:08 +0100 |
---|---|---|
committer | Vikram Kanigiri <vikram.kanigiri@arm.com> | 2014-05-22 15:42:09 +0100 |
commit | 23ff9baa7e01eac3a451f2e8ed768c9b90d3567a (patch) | |
tree | 93feb21b2f81d70f93e5e852cecbddb6fb1ba329 /bl1 | |
parent | ec786cbca93651b06431e1933abb909626949644 (diff) |
Introduce macros to manipulate the SPSR
This patch introduces macros (SPSR_64 and SPSR_32) to
create a SPSR for both aarch32 and aarch64 execution
states. These macros allow the user to set fields
in the SPSR depending upon its format.
The make_spsr() function which did not allow
manipulation of all the fields in the aarch32 SPSR
has been replaced by these new macros.
Change-Id: I9425dda0923e8d5f03d03ddb8fa0e28392c4c61e
Diffstat (limited to 'bl1')
-rw-r--r-- | bl1/bl1_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index de7bc318..ecf25506 100644 --- a/bl1/bl1_main.c +++ b/bl1/bl1_main.c @@ -95,7 +95,7 @@ void bl1_main(void) if (bl2_base) { bl1_arch_next_el_setup(); - spsr = make_spsr(MODE_EL1, MODE_SP_ELX, MODE_RW_64); + spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, DISABLE_ALL_EXCEPTIONS); printf("Booting trusted firmware boot loader stage 2\n\r"); #if DEBUG printf("BL2 address = 0x%llx \n\r", (unsigned long long) bl2_base); |