Userspace dlmalloc port, supporting syscalls mman_map()/mman_unmap()

This commit is contained in:
2025-09-10 21:52:01 +02:00
parent 91c493c818
commit 2f9f4d9397
19 changed files with 378 additions and 2 deletions

View File

@ -1,5 +1,11 @@
#include <uprintf.h>
#include <dlmalloc/malloc.h>
void main(void) {
uprintf("Hello from tb!\n");
int *tmp = dlmalloc(sizeof(*tmp) * 1024);
*tmp = 123456;
uprintf("*tmp = %d\n", *tmp);
dlfree(tmp);
}