mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
Initialize heap from crt0
This commit is contained in:
parent
30650b5d69
commit
d7413ea37e
@ -40,6 +40,15 @@ got_loop:
|
|||||||
subs x1, x1, #8
|
subs x1, x1, #8
|
||||||
bne got_loop
|
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 x0, #0 // argc
|
||||||
mov x1, #0 // argv
|
mov x1, #0 // argv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user