diff options
author | Marvin Borner | 2021-02-28 19:45:41 +0100 |
---|---|---|
committer | Marvin Borner | 2021-02-28 19:45:41 +0100 |
commit | 21522ad5f2fe55e633cd025e292537ca37e042fb (patch) | |
tree | ef195992681c69818e21ba2dd66d90af0d049b6f /libc | |
parent | d50d3aeaaeaca4a75a807759a54d1d6ae8b5bce4 (diff) |
Kinda working paging
Diffstat (limited to 'libc')
-rw-r--r-- | libc/alloc.c | 1 | ||||
-rw-r--r-- | libc/inc/mem.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libc/alloc.c b/libc/alloc.c index 16154ef..11639a6 100644 --- a/libc/alloc.c +++ b/libc/alloc.c @@ -16,7 +16,6 @@ #ifdef kernel #define HEAP_MAGIC 0x424242 -#define HEAP_INIT_SIZE 0xf000000 #define HEAP_MIN_SIZE HEAP_INIT_SIZE #define MIN_ALLOC_SZ 4 #define BIN_COUNT 9 diff --git a/libc/inc/mem.h b/libc/inc/mem.h index 6c37844..737f772 100644 --- a/libc/inc/mem.h +++ b/libc/inc/mem.h @@ -13,6 +13,9 @@ void *realloc(void *ptr, u32 size); void *zalloc(u32 size); #ifdef kernel +#define STACK_START (0x00500000 - 1) // Defined it bootloader +#define HEAP_START 0x00f00000 +#define HEAP_INIT_SIZE 0x0f00000 void heap_init(u32 start); #elif defined(userspace) #else |