actually sleep the vpu on arm init, added more stuff to sdhost, still broken though
[rpi-open-firmware.git] / arm_chainloader / chainloader.h
index 63ea608..853c739 100755 (executable)
@@ -1,6 +1,7 @@
 #pragma once\r
 \r
 #include <stdint.h>\r
+#include <stddef.h>\r
 #include <lib/xprintf.h>\r
 \r
 #define printf xprintf\r
@@ -19,6 +20,12 @@ extern void udelay(uint32_t time);
 \r
 #define mfence() __sync_synchronize()\r
 \r
+#define NBBY 8\r
+\r
+#define        __BIT(__n)      \\r
+    (((uintmax_t)(__n) >= NBBY * sizeof(uintmax_t)) ? 0 : \\r
+    ((uintmax_t)1 << (uintmax_t)((__n) & (NBBY * sizeof(uintmax_t) - 1))))\r
+\r
 #ifdef __cplusplus\r
 }\r
 #endif\r
This page took 0.022462 seconds and 4 git commands to generate.