user: implement mlibc as the libc, finally.

It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
kaguya
2026-05-02 03:31:49 -04:00
parent 2fa39ad85a
commit 9a9b91c940
2387 changed files with 152741 additions and 315 deletions
+10 -1
View File
@@ -320,4 +320,13 @@ fail:
spinlock_drop(&pagemap->lock);
printf("Invalid Phys!\n");
return INVALID_PHYS;
}
}
uintptr_t find_free_vaddr(struct pagemap *pm, size_t len) {
// Very naive for now - start from a high address
static uintptr_t next = 0x700050000000ULL;
uintptr_t addr = next;
next += ALIGN_UP(len, 0x1000000ULL); // 16 MiB alignment for simplicity
return addr;
}