fix (kernel): clearing bitmap at init
This commit is contained in:
parent
ecf881967d
commit
9fc370e549
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue