From ea7893ba7138415e0a0d3089092c94170c67e233 Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 5 Dec 2022 13:26:50 +0100 Subject: [PATCH] Make CHECK_PAGE_ALIGNED use expect() instead of check() --- kernel/src/memory/MemoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/memory/MemoryManager.cpp b/kernel/src/memory/MemoryManager.cpp index 6e3f17b3..0122b9e8 100644 --- a/kernel/src/memory/MemoryManager.cpp +++ b/kernel/src/memory/MemoryManager.cpp @@ -22,7 +22,7 @@ static u64 start_index = 0; static Bitmap g_frame_bitmap; -#define CHECK_PAGE_ALIGNED(address) expect(is_aligned(address, ARCH_PAGE_SIZE), "Address is not page-aligned"); +#define CHECK_PAGE_ALIGNED(address) expect(is_aligned(address, ARCH_PAGE_SIZE), "Address is not page-aligned") static usize get_physical_address_space_size() {