From 0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 24 Nov 2020 15:59:23 -0700 Subject: Fix kalloc. Now the HEAP START and HEAP END globals are defined by the linker script. --- include/kern/mem.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/kern/mem.h') diff --git a/include/kern/mem.h b/include/kern/mem.h index 832d31d..2af49cb 100644 --- a/include/kern/mem.h +++ b/include/kern/mem.h @@ -4,12 +4,6 @@ #include "arch.h" #include -#define DATA_SEGMENT_STOP_ADDR ((uint8_t*) &DATA_SEGMENT_STOP) -#define DATA_SEGMENT_START_ADDR ((uint8_t*) &DATA_SEGMENT_START) - -#define MAX_HEAP_SIZE \ - ((16384 - (DATA_SEGMENT_STOP_ADDR - DATA_SEGMENT_START_ADDR)) / 4 * 4) - /* allocates memory on the head, which is stored in sram2 */ void* kalloc(size_t n); -- cgit