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

Set ESR_ELX writable #15

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

JaviMerino
Copy link
Contributor

According to the Arm Architecture Reference Manual (DDI 0487H.a), sections C5.2.5 and C5.2.6, ESR_EL1 and ESR_EL2 can be written to. Whether the write succeeds depends on which exception level we are running in, but this is not a concern for the aarch64-cpu crate.

Implement the Writeable interface for ESR_EL1 and ESR_EL2.

According to the Arm Architecture Reference Manual (DDI 0487H.a),
sections C5.2.5 and C5.2.6, ESR_EL1 and ESR_EL2 can be written to.
Whether the write succeeds depends on which exception level we are
running in, but this is not a concern for the aarch64-cpu crate.

Implement the Writeable interface for ESR_EL1 and ESR_EL2.
@nchong-at-aws
Copy link
Contributor

This looks good and sensible to me. It is indeed possible to MSR to ESR_ELx.

@nchong-at-aws nchong-at-aws merged commit 179925b into rust-embedded:main Jul 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants