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

arm_smcc_1_0_*: Load a capability pointer from the stack for purecap. #1749

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

bsdjhb
Copy link
Collaborator

@bsdjhb bsdjhb commented Jul 12, 2023

No description provided.

- Load a capability pointer from the stack for purecap.

- Store capability registers to the results structure.  Even though
  the current firmware only returns integer registers, storing the
  full capability is ok as the values will just be null-derived.
  However, this approach matches the current structure's layout and
  will work with any future firmware that may return capabilities.
@bsdjhb
Copy link
Collaborator Author

bsdjhb commented Jul 13, 2023

This is fairly similar to #1378. I chose to keep the existing layout of the struct for the reasons in the commit log. The struct for 1.2 does use register_t though which is also odd (they are inconsistent upstream as well).

@bsdjhb bsdjhb merged commit 5897443 into CTSRD-CHERI:dev Jul 14, 2023
20 checks passed
@bsdjhb bsdjhb deleted the hvc_purecap_fix branch July 14, 2023 16:31
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