aboutsummaryrefslogtreecommitdiff
path: root/libc/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-12 23:56:42 +0100
committerMarvin Borner2021-03-12 23:56:42 +0100
commite8f17844d05fdc0e44d3793dc73996c7c09e44d6 (patch)
tree5d4cae66d97f2507aad7fe86ed11867b9a939bbe /libc/inc
parent928f2662d1469e815a7e32e04d6c68bae4a61c14 (diff)
New memory allocation algorithms
Diffstat (limited to 'libc/inc')
-rw-r--r--libc/inc/mem.h3
-rw-r--r--libc/inc/sys.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/libc/inc/mem.h b/libc/inc/mem.h
index e93f4d2..ec00628 100644
--- a/libc/inc/mem.h
+++ b/libc/inc/mem.h
@@ -15,9 +15,6 @@ void *zalloc(u32 size);
#ifdef kernel
#define STACK_START 0x00500000 // Defined it bootloader
#define STACK_SIZE 0x1000 // idk
-#define HEAP_START 0x00f00000
-#define HEAP_INIT_SIZE 0x0f00000
-void heap_init(u32 start);
#elif defined(userspace)
#else
#error "No lib target specified. Please use -Dkernel or -Duserspace"
diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index c20eabc..c100e6a 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -11,7 +11,7 @@
enum sys {
SYS_LOOP, // To infinity and beyond (debug)!
- SYS_MALLOC, // Allocate memory
+ SYS_ALLOC, // Allocate memory
SYS_FREE, // Free memory
SYS_STAT, // Get file information
SYS_READ, // Read file