mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00

About half of the Processor code is common across architectures, so let's share it with a templated base class. Also, other code that can be shared in some ways, like FPUState and TrapFrame functions, is adjusted here. Functions which cannot be shared trivially (without internal refactoring) are left alone for now.
21 lines
382 B
C++
21 lines
382 B
C++
/*
|
|
* Copyright (c) 2023, kleines Filmröllchen <filmroellchen@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Platform.h>
|
|
|
|
namespace Kernel {
|
|
struct FPUState;
|
|
}
|
|
|
|
#if ARCH(X86_64)
|
|
# include <Kernel/Arch/x86_64/FPUState.h>
|
|
#elif ARCH(AARCH64)
|
|
# include <Kernel/Arch/aarch64/FPUState.h>
|
|
#else
|
|
# error "Unknown architecture"
|
|
#endif
|