1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

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.
This commit is contained in:
Nico Weber 2021-09-12 09:37:28 -04:00 committed by Brian Gianforcaro
parent 22b2ca7b8e
commit 18dcd7b9c9

View file

@ -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;