mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Kernel: Add __stack_chk_fail to aarch64 Prekernel init
This is needed for some functions with local variables. We'll grow such a function soon.
This commit is contained in:
parent
58f6bf8a4d
commit
0319aa315a
Notes:
sideshowbarker
2024-07-18 03:40:37 +09:00
Author: https://github.com/nico
Commit: 0319aa315a
Pull-request: https://github.com/SerenityOS/serenity/pull/10133
Reviewed-by: https://github.com/linusg
1 changed files with 13 additions and 0 deletions
|
@ -18,3 +18,16 @@ extern "C" [[noreturn]] void init()
|
|||
// FIXME: Share this with the Intel Prekernel.
|
||||
extern size_t __stack_chk_guard;
|
||||
size_t __stack_chk_guard;
|
||||
extern "C" [[noreturn]] void __stack_chk_fail();
|
||||
|
||||
[[noreturn]] static void halt()
|
||||
{
|
||||
for (;;) {
|
||||
asm volatile("wfi");
|
||||
}
|
||||
}
|
||||
|
||||
void __stack_chk_fail()
|
||||
{
|
||||
halt();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue