[libc] Implement sbrk to allow malloc() to work

Userspace can now allocte via malloc. This is slightly janky because it
relies on a single static handle in the library code.
This commit is contained in:
2020-09-27 17:31:23 -07:00
parent 2d44e8112b
commit ff78c951f0
4 changed files with 47 additions and 18 deletions

View File

@@ -1,5 +1,7 @@
#pragma once
#include <j6/types.h>
#ifdef __cplusplus
extern "C" {
#endif