diff --git a/crt0/switch_crt0.s b/crt0/switch_crt0.s index 55b790d3..1d85fcc7 100644 --- a/crt0/switch_crt0.s +++ b/crt0/switch_crt0.s @@ -40,6 +40,15 @@ got_loop: subs x1, x1, #8 bne got_loop + + // setup heap + ldr x1, =HEAP_SIZE + svc 1 + ldr x1, =HEAP_SIZE + ldr x3, =heapInit + add x3, x3, x30 + blr x3 + mov x0, #0 // argc mov x1, #0 // argv