summaryrefslogtreecommitdiff
path: root/Kernel/Heap
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Heap')
-rw-r--r--Kernel/Heap/kmalloc.cpp4
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));