You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/03/18 16:10:48 UTC

[GitHub] [incubator-nuttx] pussuw edited a comment on pull request #5782: RISC-V: Implement option to run NuttX in supervisor mode (S-mode)

pussuw edited a comment on pull request #5782:
URL: https://github.com/apache/incubator-nuttx/pull/5782#issuecomment-1072561739


   > 
   > Why not directly handle timer interrupt in S-mode?
   >
   The memory mapped registers are available in M-mode only.
    
   > > * For some reason clearing the interrupt does not work from S-mode, so
   > >   created a call gate to clear the interrupt in M-mode
   > 
   > Could we find the root cause?
   
   I tried to simply clear the interrupt from S-mode but nothing happens. Writing e.g. CLEAR_CSR(sie, SIP_STIP); leaves the interrupt asserted unfortunately. Clearing from M-mode works. I can only assume this is by design, even though it is a bit silly IMO.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org