aboutsummaryrefslogtreecommitdiff
path: root/include/arch
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-12-06 02:00:43 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-12-06 02:00:43 -0700
commit1710871aa1958c2cac38e4b372964ef22032ed4a (patch)
tree259bcbae2f5d1c93877c74ed53ff9d2169f1ee15 /include/arch
parentd29ea8d7fb8cc6f7c3dda1cbca6266908acd4291 (diff)
downloadstm32l4-1710871aa1958c2cac38e4b372964ef22032ed4a.tar.gz
stm32l4-1710871aa1958c2cac38e4b372964ef22032ed4a.tar.bz2
stm32l4-1710871aa1958c2cac38e4b372964ef22032ed4a.zip
Added header files implementing a basic AVL tree and Map based off it.
These headers take inspiration from the linked list and array list headers as a way to provide primitive templates in C. This time they implement an AVL tree and Map template (which uses the AVL tree). Included are relatively robust tests, though they could be improved.
Diffstat (limited to 'include/arch')
-rw-r--r--include/arch/x86_64/arch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/arch/x86_64/arch.h b/include/arch/x86_64/arch.h
index 1848b58..15ebd6d 100644
--- a/include/arch/x86_64/arch.h
+++ b/include/arch/x86_64/arch.h
@@ -41,6 +41,6 @@
// testing.
#define GHOST_DATA_SEGMENT_SIZE 1200
#define HEAP_START (*(((unsigned char*)SRAM1_BASE) + GHOST_DATA_SEGMENT_SIZE))
-#define HEAP_STOP (*(&HEAP_START + 16384 - GHOST_DATA_SEGMENT_SIZE))
+#define HEAP_STOP (*(&HEAP_START + 49152 - GHOST_DATA_SEGMENT_SIZE))
#endif /* ARCH_H_ */