diff options
author | Undefine <undefine@undefine.pl> | 2022-07-22 20:48:24 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-07-27 21:46:42 +0000 |
commit | 97cc33ca47c21f21c13d0b386511f589b25b7998 (patch) | |
tree | 4eecc8720ce2c0cb371ca44d2cbafb39d434e14d /Kernel/Heap | |
parent | 6c4b5775e1ac45a96d3b8c65b3e7fb93a6135d3d (diff) | |
download | serenity-97cc33ca47c21f21c13d0b386511f589b25b7998.zip |
Everywhere: Make the codebase more architecture aware
Diffstat (limited to 'Kernel/Heap')
-rw-r--r-- | Kernel/Heap/kmalloc.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Heap/kmalloc.cpp b/Kernel/Heap/kmalloc.cpp index 8a88e80186..5e4f2ceff3 100644 --- a/Kernel/Heap/kmalloc.cpp +++ b/Kernel/Heap/kmalloc.cpp @@ -20,8 +20,10 @@ #if ARCH(I386) static constexpr size_t CHUNK_SIZE = 32; -#else +#elif ARCH(X86_64) || ARCH(AARCH64) static constexpr size_t CHUNK_SIZE = 64; +#else +# error Unknown architecture #endif static_assert(is_power_of_two(CHUNK_SIZE)); |