refactor: make pci device driver loading passive, pci bus scanner will not load them...
[lunaix-os.git] / lunaix-os / includes / lunaix / compiler.h
index 314afd95e297948b6d3596f341ed6f770c32c819..f011a0b9df07cd865c81ba2c7e741ee87c5598ca 100644 (file)
 #define stringify(v) #v
 #define stringify__(v) stringify(v)
 
+inline static void noret
+spin()
+{
+    volatile int __infloop = 1;
+    while (__infloop)
+        ;
+    __builtin_unreachable();
+}
+
 #endif /* __LUNAIX_COMPILER_H */