diff options
author | Nico Weber <thakis@chromium.org> | 2021-09-12 09:37:28 -0400 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-09-12 17:26:41 +0000 |
commit | 18dcd7b9c928fea760a8b4247e67610e03c4893f (patch) | |
tree | bedb8aa13d146855c282e7a143417657ff308271 /Kernel | |
parent | 22b2ca7b8ece9e99ac497c5df942bb72a664428e (diff) | |
download | serenity-18dcd7b9c928fea760a8b4247e67610e03c4893f.zip |
Kernel: Define __stack_chk_guard for aarch64 Prekernel
Needed for functions that have local variables.
In time we need to share this between aarch64 and intel, but while
we figure out what exactly the aarch64 Prekernel should do, let's
duplicate this.
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Prekernel/Arch/aarch64/init.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/Prekernel/Arch/aarch64/init.cpp b/Kernel/Prekernel/Arch/aarch64/init.cpp index 86af24a419..a5f96edf24 100644 --- a/Kernel/Prekernel/Arch/aarch64/init.cpp +++ b/Kernel/Prekernel/Arch/aarch64/init.cpp @@ -4,8 +4,14 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <AK/Types.h> + extern "C" [[noreturn]] void init(); extern "C" [[noreturn]] void init() { for (;;) { } } + +// FIXME: Share this with the Intel Prekernel. +extern size_t __stack_chk_guard; +size_t __stack_chk_guard; |