runtime/libia2: Set initial compartment from ia2_start#589
Open
runtime/libia2: Set initial compartment from ia2_start#589
Conversation
Contributor
|
Should this remove the XXX comment about assuming compartment 1? |
627871d to
2bba6f8
Compare
50cc9a9 to
8f13b8b
Compare
6211b15 to
d7d6d0d
Compare
d7d6d0d to
cd20774
Compare
0c7d4c6 to
5c77f8b
Compare
5c77f8b to
219f70e
Compare
This was referenced Aug 11, 2025
This uses the return value to set the initial compartment's PKRU or x18 using the config entry for "main". __wrap_main then uses that register as an argument to the initial wrpkru and to get the stack pointer using ia2_stackptr_for_tag.
7467b4a to
ee28f3a
Compare
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This uses the return value to set the initial compartment's PKRU or x18 using the config entry for "main". Marked as WIP since this also requires using this return value to set the correct stack pointer. This is required for #543 but depends on build system changes to test the new functionality.