Changed libc structure, shouldn't've added anything new

This commit is contained in:
2024-10-19 15:11:00 +02:00
parent e2e24d3853
commit 64b4e47d73
38 changed files with 264 additions and 276 deletions
+12
View File
@@ -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);
}