aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-11-05 18:24:15 -0800
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2018-11-05 18:24:15 -0800
commitf8d32acd76be69121f854047c0e98afdcd73e47a (patch)
treee11d5113ebf3758b21c93aac2f2c10446f254edb /src
parent882bfb3535b00241a0462d1cb0c9824dc78fa141 (diff)
downloadrust-x86-f8d32acd76be69121f854047c0e98afdcd73e47a.tar.gz
rust-x86-f8d32acd76be69121f854047c0e98afdcd73e47a.tar.zst
rust-x86-f8d32acd76be69121f854047c0e98afdcd73e47a.zip
Make x86 compile on 32bit architectures again.
Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
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