aboutsummaryrefslogtreecommitdiff
path: root/kernel/heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/heap.c')
-rw-r--r--kernel/heap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/heap.c b/kernel/heap.c
index d1f1021..947d0db 100644
--- a/kernel/heap.c
+++ b/kernel/heap.c
@@ -6,8 +6,8 @@
/* a simple pointer-arithmetic-based malloc */
/* a symbol put there by the linker */
-extern uint32_t link_mem_end;
-uint32_t kmalloc_addr = &link_mem_end;
+extern char link_mem_end;
+uint32_t kmalloc_addr = (uint32_t)&link_mem_end;
static void *kmalloc_int(size_t sz, int align, void **phys)
{