forked from Bananymous/banan-os
kmalloc does not zero initialize kernel memory
This commit is contained in:
parent
f2b45ba212
commit
20f7c18988
|
@ -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); }
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue