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: reconfigurable trap frame #239

Open
romancardenas opened this issue Nov 4, 2024 · 1 comment
Open

riscv-rt: reconfigurable trap frame #239

romancardenas opened this issue Nov 4, 2024 · 1 comment
Milestone

Comments

@romancardenas
Copy link
Contributor

romancardenas commented Nov 4, 2024

We need to reconfigure the trap frame via feature flags. This is especially relevant for:

  1. RV32E targets (see riscv-rt: Assembly algorithm for RAM init incompatible with upcoming RVE extension (future proofing) #189)
  2. ESP32Cx targets (see this issue in esp-hal)

Additionally, I foresee another breaking change: changing the order of the trap frame to follow the x order (from x0 to x31). As far as I know, this is required for ESP32Cx devices. Maybe @bjoernQ can confirm this to us.

@romancardenas romancardenas added this to the riscv 0.13.0 milestone Nov 4, 2024
@bjoernQ
Copy link

bjoernQ commented Nov 4, 2024

Additionally, I foresee another breaking change: changing the order of the trap frame to follow the x order (from x0 to x31). As far as I know, this is required for ESP32Cx devices. Maybe @bjoernQ can confirm this to us.

The order of the registers in the trap frame is not strictly required anymore on our side (it was required when we included atomic emulation via a trap handler - we don't do that anymore)

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