mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
Kernel: Create a stub mcontext for aarch64
The struct only has a stub integer so that the size is the same for C and C++. Something caught by CLion. This commit was made with mrkct's help!
This commit is contained in:
parent
cc2e08d9e9
commit
f94293f121
Notes:
sideshowbarker
2024-07-19 18:29:33 +09:00
Committer: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/f94293f1216
22
Kernel/Arch/aarch64/mcontext.h
Normal file
22
Kernel/Arch/aarch64/mcontext.h
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright (c) 2022, the SerenityOS developers.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
#include <Kernel/API/POSIX/sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct __attribute__((packed)) __mcontext {
|
||||
int stub;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
@ -11,5 +11,5 @@
|
||||
#if ARCH(X86_64) || ARCH(I386)
|
||||
# include <Kernel/Arch/x86/mcontext.h>
|
||||
#elif ARCH(AARCH64)
|
||||
# error "Unknown architecture"
|
||||
# include <Kernel/Arch/aarch64/mcontext.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user