Initialize heap from crt0

This commit is contained in:
plutoo 2017-09-10 23:22:49 +02:00
parent 30650b5d69
commit d7413ea37e

View File

@ -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