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

AArch64: Reimplement Paging #771

Open
Tracked by #497
mkroening opened this issue Jun 20, 2023 · 0 comments
Open
Tracked by #497

AArch64: Reimplement Paging #771

mkroening opened this issue Jun 20, 2023 · 0 comments

Comments

@mkroening
Copy link
Member

Paging is similarly unsound to the old x86-64 implementation. Even Clippy throws an obvious error:

error: mutable borrow from immutable input(s)
   --> src/arch/aarch64/mm/paging.rs:515:52
    |
515 |     fn subtable<S: PageSize>(&self, page: Page<S>) -> &mut PageTable<L::SubtableLevel> {
    |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: immutable borrow here
   --> src/arch/aarch64/mm/paging.rs:515:27
    |
515 |     fn subtable<S: PageSize>(&self, page: Page<S>) -> &mut PageTable<L::SubtableLevel> {
    |                              ^^^^^
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref
    = note: `#[deny(clippy::mut_from_ref)]` on by default

Specialization is also problematic.

Unfortunately, there is no crate which provides a good paging implementation for AArch64.

This is the last part of #497.

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