arch: arc: secure world only check secure interrupt
* in arc secureshield interrupts can be configured as secure or normal * in sw design, high interrupt priorites are allocated to secure world, low priorities are allocated to normal world. * secure interrupt > secure thread > normal interrupt > normal thead So, here secure world/firmware only checks secure interrupt priorities Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
bb0a189d42
commit
146c7e8c7e
1 changed files with 4 additions and 0 deletions
|
@ -300,7 +300,11 @@
|
|||
*/
|
||||
.macro _check_nest_int_by_irq_act reg1, reg2
|
||||
lr \reg1, [_ARC_V2_AUX_IRQ_ACT]
|
||||
#ifdef CONFIG_ARC_SECURE_FIRMWARE
|
||||
and \reg1, \reg1, ((1 << ARC_N_IRQ_START_LEVEL) - 1)
|
||||
#else
|
||||
and \reg1, \reg1, 0xffff
|
||||
#endif
|
||||
ffs \reg2, \reg1
|
||||
fls \reg1, \reg1
|
||||
cmp \reg1, \reg2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue