summaryrefslogtreecommitdiff
path: root/bl31
diff options
context:
space:
mode:
authorJeenu Viswambharan <jeenu.viswambharan@arm.com>2018-02-05 11:20:37 +0000
committerJeenu Viswambharan <jeenu.viswambharan@arm.com>2018-02-12 15:12:53 +0000
commitdb1631ef9cdddd518d2938cf3ef74313438d8937 (patch)
treeb7e5e06ad8347fbeed5074725d9bac3632fd3911 /bl31
parent15e5958560e9d31e7357e3a0ada2289e78758839 (diff)
EHF: Fix priority check
When deactivating, it's not an error if the priority being deactivating is equal to the active priority. Fix this. Change-Id: I66f0e9e775ac9aba8a7cc48cd3ecd3b358be63c0 Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
Diffstat (limited to 'bl31')
-rw-r--r--bl31/ehf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bl31/ehf.c b/bl31/ehf.c
index 65f2df52..39ee6355 100644
--- a/bl31/ehf.c
+++ b/bl31/ehf.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -201,7 +201,7 @@ void ehf_deactivate_priority(unsigned int priority)
else
old_mask = plat_ic_set_priority_mask(priority);
- if (old_mask >= priority) {
+ if (old_mask > priority) {
ERROR("Deactivation priority (0x%x) lower than Priority Mask (0x%x)\n",
priority, old_mask);
panic();