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

l4::utcb::Registers: implement modes #9

Open
humenda opened this issue Aug 13, 2023 · 0 comments
Open

l4::utcb::Registers: implement modes #9

humenda opened this issue Aug 13, 2023 · 0 comments

Comments

@humenda
Copy link
Owner

humenda commented Aug 13, 2023

The UTCB should be writable or readable, but not both at the same time.
This invariant ensures that data that being read is still valid, except a call
happened in between.
An example: reading an Array is safe, i.e. it's a pointer to the UTCB with a
length. Writing an array is safe as long as the Array is not part of the UTCB.
Differenciating the UTCB in read and write attaches a lifetime to each reference
that exists to it and this one is dropped once the mode is changed.

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

1 participant