diff options
author | 2018-11-05 18:24:15 -0800 | |
---|---|---|
committer | 2018-11-05 18:24:15 -0800 | |
commit | f8d32acd76be69121f854047c0e98afdcd73e47a (patch) | |
tree | e11d5113ebf3758b21c93aac2f2c10446f254edb /src | |
parent | 882bfb3535b00241a0462d1cb0c9824dc78fa141 (diff) | |
download | rust-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.rs | 1 |
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 |