Skip to content

Commit

Permalink
reserve more memory for io devices
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes authored and mkroening committed Nov 9, 2023
1 parent 9d881e7 commit af01ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub(crate) fn init() {
npage_2tables / (BasePageSize::SIZE as usize / mem::align_of::<usize>()) + 1;
let reserved_space = (npage_3tables + npage_2tables + npage_1tables)
* BasePageSize::SIZE as usize
+ LargePageSize::SIZE as usize;
+ 2 * LargePageSize::SIZE as usize;
#[cfg(any(target_arch = "x86_64", target_arch = "riscv64"))]
let has_1gib_pages = arch::processor::supports_1gib_pages();
let has_2mib_pages = arch::processor::supports_2mib_pages();
Expand Down

0 comments on commit af01ca5

Please sign in to comment.