cleanup
[rpikern] / src / asm.h
index f544000..425a8ee 100644 (file)
--- a/src/asm.h
+++ b/src/asm.h
@@ -5,11 +5,11 @@
 #define disable_intr() asm volatile ("cpsid i")
 #define mem_barrier()  asm volatile ("dmb" ::: "memory")
 
-/*
 #define delay(x)  asm volatile ( \
                "0: subs %0, %0, #1\n\t" \
                "bne 0b\n\t" \
                :: "r"(x) : "cc")
-*/
+
+#define halt_cpu() asm volatile("wfe");
 
 #endif /* ASM_H_ */