diff options
author | danh-arm <dan.handley@arm.com> | 2014-07-28 14:33:44 +0100 |
---|---|---|
committer | danh-arm <dan.handley@arm.com> | 2014-07-28 14:33:44 +0100 |
commit | dd2bdee61682df0ec65dfc43371c126a86a30c30 (patch) | |
tree | 12e1fca8b8e84230029bc9b6efa7f41b031ab069 /bl31/interrupt_mgmt.c | |
parent | 6397bf6a99d785caa9b50016cd6c8eb76083c117 (diff) | |
parent | d3280beb700321b0ef47b4f61d84667ba501bc61 (diff) |
Merge pull request #177 from jcastillo-arm/jc/tf-issues/096
Rework incorrect use of assert() and panic() in codebase
Diffstat (limited to 'bl31/interrupt_mgmt.c')
-rw-r--r-- | bl31/interrupt_mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bl31/interrupt_mgmt.c b/bl31/interrupt_mgmt.c index 2b0c7970..e595634e 100644 --- a/bl31/interrupt_mgmt.c +++ b/bl31/interrupt_mgmt.c @@ -107,7 +107,7 @@ uint32_t get_scr_el3_from_routing_model(uint32_t security_state) { uint32_t scr_el3; - assert(security_state <= NON_SECURE); + assert(sec_state_is_valid(security_state)); scr_el3 = intr_type_descs[INTR_TYPE_NS].scr_el3[security_state]; scr_el3 |= intr_type_descs[INTR_TYPE_S_EL1].scr_el3[security_state]; scr_el3 |= intr_type_descs[INTR_TYPE_EL3].scr_el3[security_state]; |