mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
13 lines
225 B
C
13 lines
225 B
C
#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);
|
|
}
|
|
|