Skip to content

Commit

Permalink
Fix first problem with large shmem size
Browse files Browse the repository at this point in the history
  • Loading branch information
hunhoffe committed Nov 13, 2023
1 parent 468b90f commit 3c170f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified bootloader/OVMF_CODE.fd
Binary file not shown.
2 changes: 1 addition & 1 deletion kernel/src/arch/x86_64/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1364,7 +1364,7 @@ impl Process for Ring3Process {
// TODO(broken): Big (>= 2 MiB) allocations should be inserted here too
// TODO(ugly): Find a better way to express this mess
let kvspace = super::vspace::INITIAL_VSPACE.lock();
for i in 128..=135 {
for i in 128..=510 {
let kernel_pml_entry = kvspace.pml4[i];
trace!("Patched in kernel mappings at {:?}", kernel_pml_entry);
self.vspace.page_table.pml4[i] = kernel_pml_entry;
Expand Down

0 comments on commit 3c170f3

Please sign in to comment.