mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
Kernel: Don't directly include <Kernel/Arch/x86/TrapFrame.h>
This adds a new arch-independent header which in turn includes the correct header for the build architecture.
This commit is contained in:
parent
918fdf9e2c
commit
1e3edb3b76
Notes:
sideshowbarker
2024-07-17 18:46:30 +09:00
Author: https://github.com/gunnarbeutner
Commit: 1e3edb3b76
Pull-request: https://github.com/SerenityOS/serenity/pull/15639
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/supercomputer7 ✅
9 changed files with 25 additions and 8 deletions
17
Kernel/Arch/TrapFrame.h
Normal file
17
Kernel/Arch/TrapFrame.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Gunnar Beutner <gbeutner@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
|
||||
#if ARCH(X86_64) || ARCH(I386)
|
||||
# include <Kernel/Arch/x86/TrapFrame.h>
|
||||
#elif ARCH(AARCH64)
|
||||
# include <Kernel/Arch/aarch64/TrapFrame.h>
|
||||
#else
|
||||
# error "Unknown architecture"
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue