From 94dd38d010cc8427d98a71913f7f9336505868a9 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Sun, 7 Sep 2025 22:56:00 +0200 Subject: [PATCH] Set bitmap block size to page size --- kernel/bitmap/bitmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/bitmap/bitmap.h b/kernel/bitmap/bitmap.h index 5de35df..e7eff93 100644 --- a/kernel/bitmap/bitmap.h +++ b/kernel/bitmap/bitmap.h @@ -5,6 +5,8 @@ #include #include +#include "hal/hal.h" + typedef struct { uint8_t *map; size_t nblocks; @@ -15,7 +17,7 @@ typedef struct { } BitMap; #define BITMAP_BLOCKS_PER_BYTE 8 -#define BITMAP_BLOCK_SIZE 0x1000 +#define BITMAP_BLOCK_SIZE HAL_PAGE_SIZE #define BITMAP_INVALID_BLOCK ((size_t)-1) void *bitmap_toptr(BitMap *bm, size_t block);