Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

riscv-rt: Machine + Supervisor mixed executable #192

Open
ZhekaS opened this issue Mar 14, 2024 · 1 comment
Open

riscv-rt: Machine + Supervisor mixed executable #192

ZhekaS opened this issue Mar 14, 2024 · 1 comment

Comments

@ZhekaS
Copy link

ZhekaS commented Mar 14, 2024

As far as I understand the crates can be compiled with S-mode support, but in that case the assumption will be that it starts and always runs in S-mode.
Is the following use-case supported or any plans for it to be supported:

  1. The execution starts in M-mode, certain M-only setup is done (like PMP config etc)
  2. The privilege level drops to S-mode for a regular execution flow
  3. ECALLs from S-mode are served in M-mode
@romancardenas
Copy link
Contributor

We have no plans for this, but it could be interesting to discuss it. If you like, you could use this issue as an RFC to start developing/shaping how the functionality you propose should look like.

@romancardenas romancardenas changed the title Machine + Supervisor mixed executable riscv-rt: Machine + Supervisor mixed executable Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants