mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16: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:
parent
22b2ca7b8e
commit
18dcd7b9c9
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue