fix (kernel): clearing bitmap at init

This commit is contained in:
antifallobst 2023-02-12 19:58:22 +01:00
parent ecf881967d
commit 9fc370e549
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ bitmap_T bitmap_init(uint32_t size) {
bitmap_T bitmap; bitmap_T bitmap;
bitmap.size = size / 8 + 1; bitmap.size = size / 8 + 1;
bitmap.buffer = memory_allocate(bitmap.size); bitmap.buffer = memory_allocate(bitmap.size);
memory_set(bitmap.buffer, 0, bitmap.size);
return bitmap; return bitmap;
} }