kmalloc does not zero initialize kernel memory

This commit is contained in:
Bananymous 2022-11-16 19:51:45 +02:00
parent f2b45ba212
commit 20f7c18988
2 changed files with 0 additions and 4 deletions

View File

@ -7,6 +7,5 @@ void kmalloc_initialize();
void* kmalloc(size_t);
void kfree(void*);
inline void* operator new(size_t size) { return kmalloc(size); }
inline void* operator new[](size_t size) { return kmalloc(size); }

View File

@ -4,7 +4,6 @@
#include <kernel/kprint.h>
#include <stdint.h>
#include <string.h>
#define MB (1 << 20)
@ -46,8 +45,6 @@ void kmalloc_initialize()
if (!valid)
Kernel::panic("Could not find enough space for kmalloc");
memset(s_kmalloc_info.base_addr, 0, s_kmalloc_info.total_size);
s_kmalloc_info.used = 0;
}