diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-24 13:05:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-25 15:19:09 +0200 |
commit | 04ba5cfcad6771de04fc8c7fa7bc0be810c72beb (patch) | |
tree | bb754a191c03a7d2e7ea942d5aee008b3fd3e94a /Kernel | |
parent | 4c555684b706bb62aaf8c85d48b2b6e029654220 (diff) | |
download | serenity-04ba5cfcad6771de04fc8c7fa7bc0be810c72beb.zip |
Kernel: Ensure that the Multiboot header is placed into the first 8kB
The Multiboot header must be within the first 8kB of the executable
for it to be picked up by QEMU, GRUB and other multiboot-capable
boot loaders.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/CMakeLists.txt b/Kernel/CMakeLists.txt index 86d17579b4..4b75fd1094 100644 --- a/Kernel/CMakeLists.txt +++ b/Kernel/CMakeLists.txt @@ -352,7 +352,7 @@ if (NOT ${CMAKE_HOST_SYSTEM_NAME} MATCHES SerenityOS) endif() if ("${SERENITY_ARCH}" STREQUAL "x86_64") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large -mno-red-zone") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcmodel=large -mno-red-zone -z max-page-size=0x1000") endif() # Kernel Undefined Behavior Sanitizer (KUBSAN) |