forked from PoliEcho-holding-org/kern
Changed libc structure, shouldn't've added anything new
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#include <stdint.h>
|
||||
#include <syscall.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void* malloc(const uint32_t size) {
|
||||
return (void*)syscall(SYS_MALLOC, size, 0, 0);
|
||||
}
|
||||
|
||||
void free(const void* ptr) {
|
||||
syscall(SYS_FREE, (int)ptr, 0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user