We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3f61a commit 770e5daCopy full SHA for 770e5da
uefi/src/main.rs
@@ -410,9 +410,10 @@ fn create_page_tables(
410
}
411
};
412
413
- // copy the first entry (we don't need to access more than 512 GiB; also, some UEFI
414
- // implementations seem to create an level 4 table entry 0 in all slots)
415
- new_table[0] = old_table[0].clone();
+ // copy all entries
+ for (index, entry) in old_table.iter().enumerate() {
+ new_table[index] = entry.clone();
416
+ }
417
418
// the first level 4 table entry is now identical, so we can just load the new one
419
unsafe {
0 commit comments