mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
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:
parent
18dcd7b9c9
commit
2dc02607ed
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue