Implement APIC, RTC, basic ACPI parser and timer support
[lunaix-os.git] / lunaix-os / includes / lunaix / spike.h
index e39c6119a96c5ba1dd868ed65eb6b20d3fd45980..9cf4b7fee0e442873e7a39498ca8252d1ff568f1 100644 (file)
@@ -31,10 +31,15 @@ inline static void spin() {
     }
 void __assert_fail(const char* expr, const char* file, unsigned int line) __attribute__((noinline, noreturn));
 #else
-#define assert(cond) //assert nothing
-#define assert_msg(cond, msg)  //assert nothing
+#define assert(cond) (void)(cond); //assert nothing
+#define assert_msg(cond, msg) (void)(cond);  //assert nothing
 #endif
 
+void panick(const char* msg);
+
+
+#define wait_until(cond)    while(!(cond));
+#define loop_until(cond)    while(!(cond));
 
 
 #endif /* __LUNAIX_SPIKE_H */