From ea07a84df6494eb582e2134e4394ae88fa19eb2e Mon Sep 17 00:00:00 2001 From: plutoo Date: Sun, 10 Sep 2017 23:26:56 +0200 Subject: [PATCH] Fixed crt0 bug --- crt0/switch_crt0.s | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crt0/switch_crt0.s b/crt0/switch_crt0.s index 1d85fcc7..ddb7db11 100644 --- a/crt0/switch_crt0.s +++ b/crt0/switch_crt0.s @@ -42,9 +42,10 @@ got_loop: // setup heap - ldr x1, =HEAP_SIZE - svc 1 - ldr x1, =HEAP_SIZE + ldr x1, =HEAP_SIZE + svc 1 // check retval? + mov x0, x1 + ldr x1, =HEAP_SIZE ldr x3, =heapInit add x3, x3, x30 blr x3