Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions uefi/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,10 @@ fn create_page_tables(
}
};

// copy the first entry (we don't need to access more than 512 GiB; also, some UEFI
// implementations seem to create an level 4 table entry 0 in all slots)
new_table[0] = old_table[0].clone();
// copy all entries
for (index, entry) in old_table.iter().enumerate() {
new_table[index] = entry.clone();
}

// the first level 4 table entry is now identical, so we can just load the new one
unsafe {
Expand Down
Loading