Skip to content
Snippets Groups Projects
Commit 4cb564bc authored by Ivan Tan's avatar Ivan Tan
Browse files

aarch64: align sp in _start

parent d006b957
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ global_asm!( ...@@ -11,6 +11,7 @@ global_asm!(
.globl _start .globl _start
_start: _start:
mov x0, sp mov x0, sp
and sp, x0, #0xfffffffffffffff0 //align sp
bl relibc_start bl relibc_start
" "
); );
......
...@@ -9,6 +9,7 @@ global_asm!( ...@@ -9,6 +9,7 @@ global_asm!(
.globl _start .globl _start
_start: _start:
mov x0, sp mov x0, sp
and sp, x0, #0xfffffffffffffff0 //align sp
bl relibc_ld_so_start bl relibc_ld_so_start
# TODO: aarch64 # TODO: aarch64
udf #0 udf #0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment