Ensure we reserve room on the stack before starting the first task
Not 100% sure if this is actually needed, but this is just to make sure that the following call to new_task doesn't get its return address overwritten
This commit is contained in:
parent
68eb3777b0
commit
70fd0823dd
|
@ -83,6 +83,7 @@ run_startup_task:
|
||||||
mov r1, r0
|
mov r1, r0
|
||||||
mov r0, 0
|
mov r0, 0
|
||||||
mov r2, rsp
|
mov r2, rsp
|
||||||
|
sub r2, 4
|
||||||
call new_task
|
call new_task
|
||||||
|
|
||||||
; when the startup file yields for the first time, we'll end up back here
|
; when the startup file yields for the first time, we'll end up back here
|
||||||
|
|
Loading…
Reference in New Issue
Block a user