Added C++ ctors and partial SDHOST driver
[rpi-open-firmware.git] / arm_chainloader / chainloader.h
index 4aa7626..63ea608 100755 (executable)
@@ -1,5 +1,25 @@
 #pragma once\r
 \r
+#include <stdint.h>\r
 #include <lib/xprintf.h>\r
 \r
-#define printf xprintf
\ No newline at end of file
+#define printf xprintf\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+extern void udelay(uint32_t time);\r
+\r
+#define STATIC_INIT_PRIORITY(x) __attribute__((init_priority(x)))\r
+\r
+#define STATIC_CPRMAN_DRIVER STATIC_INIT_PRIORITY(101)\r
+#define STATIC_DRIVER STATIC_INIT_PRIORITY(200)\r
+#define STATIC_APP STATIC_INIT_PRIORITY(600)\r
+\r
+#define mfence() __sync_synchronize()\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
This page took 0.021348 seconds and 4 git commands to generate.