9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 89be825fbc2d143f006e6befc34f8e54fd79829c
parent 90807ab446c846b051f45a6bc164553c989e157f
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed, 17 Oct 2018 11:46:22 +0100

[arm64] Move load address to callee-saved x19

x30 can get clobbered.

Change-Id: Ie22b9578fee450f31f763e59004699132363216c
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
March/arm64/crt-none.s | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/crt-none.s b/arch/arm64/crt-none.s @@ -8,6 +8,7 @@ _start: bl getpc getpc: sub x30,x30,4 + mov x19,x30 ldr x0,=SRAMADDR mov x1,#SRAMSIZE @@ -25,7 +26,7 @@ getpc: stp xzr,xzr,[sp,#-16]! mov x29,sp - mov x0,x30 + mov x0,x19 ldr x1,=SRAMADDR mov x2,#SRAMSIZE bl main