Kernel: Add VALIDATE_IS_AARCH64 guard macro

This commit is contained in:
Gunnar Beutner 2022-10-16 16:55:42 +02:00 committed by Linus Groh
parent dfee6f73d2
commit 918fdf9e2c
Notes: sideshowbarker 2024-07-17 08:42:05 +09:00
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -6,6 +6,9 @@
#pragma once
#include <AK/Platform.h>
VALIDATE_IS_AARCH64()
namespace Kernel {
struct RegisterState {