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

Identity-mapped pagetable support (UEFI boot) #924

Draft
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

sarahspberrypi
Copy link
Contributor

@sarahspberrypi sarahspberrypi commented Sep 20, 2023

OG: 9b8db51

boot_info().hardware_info.phys_addr_range.start as usize
}

pub fn is_uefi() -> Result<(), ()> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why you don't just return a bool?

- reserved_space)
.align_down(LargePageSize::SIZE as usize)
};
// if !crate::arch::x86_64::kernel::is_uefi() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to be removed 🙂

@@ -64,6 +70,16 @@ unsafe fn recursive_page_table() -> RecursivePageTable<'static> {
}
}

unsafe fn identity_mapped_page_table() -> OffsetPageTable<'static> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd appreciate a short doc comment, as I think it is not 100% obvious what the function is doing.

Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
…t page writable

Signed-off-by: Martin Kröning <martin.kroening@eonerc.rwth-aachen.de>
… available) + minor inconsistency fixes (e.g., Size4KiB and BasePageSize being used simultaneously)
…ADT) and parse the Fixed ACPI Description Table (FADT) (parsing in itself is successful but it still breaks because of a deallocate)
@mkroening mkroening mentioned this pull request Apr 16, 2024
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.

None yet

2 participants