diff options
-rw-r--r-- | AK/Platform.h | 6 | ||||
-rw-r--r-- | Kernel/Arch/aarch64/RegisterState.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/AK/Platform.h b/AK/Platform.h index 59d767a93d..9208c4dcc0 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -91,6 +91,12 @@ # define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform"); #endif +#if ARCH(AARCH64) +# define VALIDATE_IS_AARCH64() +#else +# define VALIDATE_IS_AARCH64() static_assert(false, "Trying to include aarch64 only header on non aarch64 platform"); +#endif + #if !defined(AK_COMPILER_CLANG) && !defined(__CLION_IDE_) && !defined(__CLION_IDE__) # define AK_HAS_CONDITIONALLY_TRIVIAL #endif diff --git a/Kernel/Arch/aarch64/RegisterState.h b/Kernel/Arch/aarch64/RegisterState.h index d4db9f1014..63553c8fa4 100644 --- a/Kernel/Arch/aarch64/RegisterState.h +++ b/Kernel/Arch/aarch64/RegisterState.h @@ -6,6 +6,9 @@ #pragma once +#include <AK/Platform.h> +VALIDATE_IS_AARCH64() + namespace Kernel { struct RegisterState { |