浏览代码

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

James Mintram 3 年之前
父节点
当前提交
80cdfee10a
共有 1 个文件被更改,包括 3 次插入0 次删除
  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 {