From 9fc370e5494be36bb0de5141e5c9f28c7631b2e8 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Sun, 12 Feb 2023 19:58:22 +0100 Subject: [PATCH] fix (kernel): clearing bitmap at init --- kernel/src/utils/bitmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/utils/bitmap.c b/kernel/src/utils/bitmap.c index 122c36f..6ab5208 100644 --- a/kernel/src/utils/bitmap.c +++ b/kernel/src/utils/bitmap.c @@ -27,6 +27,7 @@ bitmap_T bitmap_init(uint32_t size) { bitmap_T bitmap; bitmap.size = size / 8 + 1; bitmap.buffer = memory_allocate(bitmap.size); + memory_set(bitmap.buffer, 0, bitmap.size); return bitmap; }