From 21522ad5f2fe55e633cd025e292537ca37e042fb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 28 Feb 2021 19:45:41 +0100 Subject: Kinda working paging --- libc/alloc.c | 1 - libc/inc/mem.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'libc') 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 -- cgit v1.2.3