aboutsummaryrefslogtreecommitdiff
path: root/src/kern/main.c
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 /src/kern/main.c
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 'src/kern/main.c')
-rw-r--r--src/kern/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kern/main.c b/src/kern/main.c
index 1eedb59..a6743d5 100644
--- a/src/kern/main.c
+++ b/src/kern/main.c
@@ -2,6 +2,8 @@
#include "arch/stm32l4xxx/peripherals/clock.h"
#include "arch/stm32l4xxx/peripherals/system.h"
#include "kern/log.h"
+#include "kern/panic.h"
+#include "kern/init.h"
void on_systick() /* Overrides weak-symbol on_systick. */
{
@@ -14,6 +16,8 @@ void on_systick() /* Overrides weak-symbol on_systick. */
int main()
{
klogf("Hello, World! Clock Mhz: %d\n", (uint32_t)get_clock_mhz());
+ klogf("Heap Start: %p\n", &HEAP_START);
+ klogf("Heap End : %p\n", &HEAP_STOP);
/* Set the countdown to start from 10,000,0000. */
SCB.strv_r = 10000000;