You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If supported, setting the priority number for supervisor-level external interrupts (bits 15:8 of
iprio2) to a nonzero value p has the effect of giving the entire category of supervisor external
interrupts nominally the same priority as a machine external interrupt with priority number p.
I'm a bit confused with the nominally the same priority as a machine external interrupt with priority number p statement.
For example, if we have set S-level external interrupts iprio = 42
and in M-mode we have pending both
S-level external interrupts
M-level external interrupts with external interrupt identity (mtopei.identity) = 42
do we have two interrupts with absolutely same priorities? How we determine which should trigger first?
On the other hand, if we should use the default priority order rules - then it's not clear why do we phrase it like ... the same priority as a machine external interrupt with priority number p
instead of ... the same priority as a supervisor external interrupt with priority number p
Such phasing should be valid but it clearly shows that default priority order should be used.
Thanks!
The text was updated successfully, but these errors were encountered:
do we have two interrupts with absolutely same priorities? How we determine which should trigger first?
We have two interrupts with the same nominal priority, meaning the same priority number (hence, the appearance of having the same priority). In the same section, the AIA says, "When two interrupt causes have been assigned the same nominal priority, ties are broken by the default priority order." The AIA is clear that S-level external interrupts have lower default priority than M-level external interrupts.
The AIA spec says
I'm a bit confused with the
nominally the same priority as a machine external interrupt with priority number p
statement.For example, if we have set S-level external interrupts
iprio = 42
and in M-mode we have pending both
do we have two interrupts with absolutely same priorities? How we determine which should trigger first?
On the other hand, if we should use the
default priority order
rules - then it's not clear why do we phrase it like... the same priority as a machine external interrupt with priority number p
instead of
... the same priority as a supervisor external interrupt with priority number p
Such phasing should be valid but it clearly shows that default priority order should be used.
Thanks!
The text was updated successfully, but these errors were encountered: