aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bits64/paging.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bits64/paging.rs b/src/bits64/paging.rs
index 3f70256..ad80ff5 100644
--- a/src/bits64/paging.rs
+++ b/src/bits64/paging.rs
@@ -420,6 +420,7 @@ pub const LARGE_PAGE_SIZE: usize = 1024 * 1024 * 2;
pub const HUGE_PAGE_SIZE: usize = 1024 * 1024 * 1024;
/// Size of a region covered by a PML4 Entry (512 GiB)
+#[cfg(target_arch = "x86_64")]
pub const PML4_SLOT_SIZE: usize = HUGE_PAGE_SIZE * 512;
/// Size of a cache-line