commit a6f9da76612823c4485096afb15c319845fd5740
parent 53ac88c0ea18708197a378ce6f94bd2e95347f33
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Fri, 18 Sep 2020 15:24:00 +0200
aarch64: Initialize frame pointer chain
The end of the chain is marked with a 0 and to get
this zero is needed to initialize x29 to zero before
calling the first C function.
Change-Id: Id5f4dd882b49db89ad0ba466b2bd0e8b5894ebc4
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/os9/arch/arm64/crt.s b/src/os9/arch/arm64/crt.s
@@ -47,6 +47,7 @@ el1:
sub x2,x2,x0
bl memset
+ sub x29,x29,x29
bl main
adr x0,outsync
b panic