-
-
Notifications
You must be signed in to change notification settings - Fork 171
Update set_virtual_address_map()
to allow remapping of SystemTable
#301
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
Update set_virtual_address_map()
to allow remapping of SystemTable
#301
Conversation
… struct. * Updated set_virtual_address_map() to also take a new virtual address for the `SystemTableImpl` used internally. * Provided new `SystemTable` function `get_current_system_table_addr()` to allow the caller to calculate a new virtual address.
set_virtual_address_map()
to allow remapping of SystemTableset_virtual_address_map()
to allow remapping of SystemTable, fixes #278
set_virtual_address_map()
to allow remapping of SystemTable, fixes #278set_virtual_address_map()
to allow remapping of SystemTable
…o method SystemTable::set_virtual_address_map(). * Cleanup implementation of SystemTable::set_virtual_address_map().
Will address the doc error |
src/table/system.rs
Outdated
/// Changes the runtime addressing mode of EFI firmware from physical to virtual. | ||
/// It is up to the caller to translate the old SystemTable address to a new virtual | ||
/// address and provide it for this function. | ||
/// See ['get_current_system_table_addr'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and below in the link, change the single-quotes to backticks (`
instead of '
) so that code formatting is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found it, thanks!
Looks good, thanks for the PR! |
SystemTable
struct.SystemTableImpl
used internally.SystemTable
functionget_current_system_table_addr()
to allow the caller to calculate a new virtual address.fixes Remapping UEFI runtime services via set_virtual_address_map() breaks the SystemTable struct #278