Re: Question about supervisor interrupt in M mode


Oscar Jupp
 

Dear Jeff,

How can I search on previous Summit proceedings for this pseudocode equation for “enabled”?

Regards,
Oscar Jupp


---- Replied Message ----
From Jeff Scott<jeff.scott@...>
Date 11/30/2022 00:09
To scott.johnson@...<scott.johnson@...> ,
tech-privileged@...<tech-privileged@...>
Subject Re: [RISC-V] [tech-privileged] Question about supervisor interrupt in M mode

Yep, think of mti as first timer interrupt and sti as second timer interrupt.

 

A pseudocode equation for “enabled” in the spec would make this easier.  I think if you search on previous Summit proceedings, there was a presentation a long time ago that showed the equations.

 

Jeff

 

From: tech-privileged@... <tech-privileged@...> On Behalf Of Scott Johnson via lists.riscv.org
Sent: Tuesday, November 29, 2022 10:05 AM
To: tech-privileged@...
Subject: [EXT] Re: [RISC-V] [tech-privileged] Question about supervisor interrupt in M mode

 

Caution: EXT Email

Oscar, what you are missing is that STI, despite its name, is not for a lower-privilege mode when mideleg[5]==0. In that case the STI is destined for M-mode and therefore can be taken in any privilege mode.

To correct your statement: When a hart is executing in M mode, supervisor timer interrupt is disabled if mideleg[5]==1.

Join {tech-privileged@lists.riscv.org to automatically receive all group messages.