feat: implemented liballoc for proper malloc
This commit is contained in:
@@ -4,14 +4,17 @@
|
||||
|
||||
#ifndef NEW_KERNEL_MALLOC_H
|
||||
#define NEW_KERNEL_MALLOC_H
|
||||
// retrieved from https://github.com/blanham/liballoc
|
||||
#include <types.h>
|
||||
|
||||
void malloc_init();
|
||||
void *malloc(size_t);
|
||||
|
||||
void *realloc(void *, size_t);
|
||||
|
||||
void *calloc(size_t, size_t);
|
||||
|
||||
void free(void *);
|
||||
|
||||
void print_malloc_info();
|
||||
|
||||
void *malloc(size_t size);
|
||||
|
||||
void free(void *mem);
|
||||
|
||||
#endif //NEW_KERNEL_MALLOC_H
|
||||
|
||||
Reference in New Issue
Block a user