Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
RISC-V SW Dev
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
Trap delegation to Supervisor mode
40 views
Skip to first unread message
Susmita Nayak
unread,
May 3, 2024, 6:20:57 AM
5/3/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RISC-V SW Dev
Hi All,
I am looking to learn trap delegation to S MODE. I want to refer to some assembly programs.
Can anyone help me?
Thanks,
Susmita
Jaume Gauchola
unread,
May 6, 2024, 3:24:56 AM
5/6/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RISC-V SW Dev, sus...@maven-silicon.com
Hi Susmita,
What are your doubts about trap delegation in S-mode (CSR configuration, handling functions, virtual memory,...)?
Don't hesitate to ask!
Best regards,
Jaume
Charles Papon
unread,
May 6, 2024, 4:14:59 AM
5/6/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RISC-V SW Dev, jaume.g...@semidynamics.com, sus...@maven-silicon.com
Hi,
Here are a few exemples of trap delegations (the code run in machine mode as a background, and localy elevate itself) :
https://github.com/SpinalHDL/NaxSoftware/blob/865b8c1465cb24c78423d16fd6dd74d12f643bda/baremetal/supervisor/src/crt.S#L61
The macros are defined into
https://github.com/SpinalHDL/NaxSoftware/blob/865b8c1465cb24c78423d16fd6dd74d12f643bda/baremetal/driver/privileged.h
That crt.S is used to run some regressions test on a cpu.
Regards
Charles
Susmita Nayak
unread,
May 7, 2024, 7:30:22 AM
5/7/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RISC-V SW Dev, charles....@gmail.com, jaume.g...@semidynamics.com, Susmita Nayak
Thanks. Will check the same and get back.
Regards,
Susmita
Reply all
Reply to author
Forward
0 new messages