Kernel: Put boot.S first in aarch64 Prekernel source list

The better fix is to have a linker script. We'll need this to set
the entry point to 0x80000 for bare-metal builds anyways. But I'd
like to get some UART output in qemu before I add this (otherwise
I can't check if the bare-metal version does anything), so put
in this temporary kludge for now.
This commit is contained in:
Nico Weber 2021-09-12 09:39:27 -04:00 committed by Brian Gianforcaro
parent 18dcd7b9c9
commit 2dc02607ed

View file

@ -4,9 +4,15 @@ set(SOURCES
)
if ("${SERENITY_ARCH}" STREQUAL "aarch64")
set(SOURCES
# This has to be first, so that the entry point is at the start of the image.
# Needed because:
# - execution starts at the start of the image
# - the stack pointer currently starts before the start symbol, so if the start symbol isn't the first symbol, the stack will clobber arbitrary code
# FIXME: Use an aarch64-specific linker script instead.
Arch/aarch64/boot.S
${SOURCES}
Arch/aarch64/init.cpp
Arch/aarch64/boot.S
)
else()
set(SOURCES