aboutsummaryrefslogtreecommitdiff
path: root/include/kern/mem.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-24 15:59:23 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-24 15:59:23 -0700
commit0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0 (patch)
treed986372cf7266cd1e090b7974e744c77c1871bdc /include/kern/mem.h
parentecbcb2509f4b811bce0a56e07de9737d14815251 (diff)
downloadstm32l4-0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0.tar.gz
stm32l4-0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0.tar.bz2
stm32l4-0c0f5c3d8397ba5168f0cd01b25ba70c238b36e0.zip
Fix kalloc. Now the HEAP START and HEAP END globals are defined by the linker script.
Diffstat (limited to 'include/kern/mem.h')
-rw-r--r--include/kern/mem.h6
1 files changed, 0 insertions, 6 deletions
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 <stddef.h>
-#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);