1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:07:45 +00:00

Kernel: Do not specify new alignment for aarch64

Using the alignment of 4 causes a panic in the aarch64 Kernel. Instead
just don't pass the flag, which will use the default alignment.
This commit is contained in:
Timon Kruiper 2022-05-17 09:41:25 +02:00 committed by Linus Groh
parent cbe1717181
commit 846d9ae858

View file

@ -518,7 +518,7 @@ endmacro()
if ("${SERENITY_ARCH}" STREQUAL "x86_64") if ("${SERENITY_ARCH}" STREQUAL "x86_64")
add_compile_options(-mcmodel=large -mno-red-zone) add_compile_options(-mcmodel=large -mno-red-zone)
set_new_alignment(8) set_new_alignment(8)
else() elseif ("${SERENITY_ARCH}" STREQUAL "i686")
set_new_alignment(4) set_new_alignment(4)
endif() endif()