Browse Source

Kernel: Add an x86 include check+error in x86/Spinlock.h

James Mintram 3 years ago
parent
commit
80cdfee10a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Kernel/Arch/x86/Spinlock.h

+ 3 - 0
Kernel/Arch/x86/Spinlock.h

@@ -9,6 +9,9 @@
 #include <Kernel/Arch/Processor.h>
 #include <Kernel/Locking/LockRank.h>
 
+#include <AK/Platform.h>
+VALIDATE_IS_X86()
+
 namespace Kernel {
 
 class Spinlock {