aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/mem.h
diff options
context:
space:
mode:
authorMarvin Borner2021-03-14 16:12:44 +0100
committerGitHub2021-03-14 16:12:44 +0100
commit268f3ccdb90ab4b9bd70ca176478797aae97ca05 (patch)
tree2dbc3e52d90dab4aae8021773f09b6b72a74b8cb /libc/inc/mem.h
parent4309322f9d2b3e31421a3cc5399ab1f4368e0652 (diff)
parent6dec7db5158447b66f31a3f786ce2916cab83cec (diff)
Added memory management using paging
This was quite a roller-coaster and most things are slower now, but it works and is way more secure. I still need to implement things like shared memory for the WM/GUI system but other than that everything is supported.
Diffstat (limited to 'libc/inc/mem.h')
-rw-r--r--libc/inc/mem.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/inc/mem.h b/libc/inc/mem.h
index 6c37844..ec00628 100644
--- a/libc/inc/mem.h
+++ b/libc/inc/mem.h
@@ -13,7 +13,8 @@ void *realloc(void *ptr, u32 size);
void *zalloc(u32 size);
#ifdef kernel
-void heap_init(u32 start);
+#define STACK_START 0x00500000 // Defined it bootloader
+#define STACK_SIZE 0x1000 // idk
#elif defined(userspace)
#else
#error "No lib target specified. Please use -Dkernel or -Duserspace"