Couldn't actually wrap around the vring.
[akaros.git] / kern / include / compiler.h
index 5f0433f..d43c1c3 100644 (file)
@@ -4,10 +4,12 @@
 
 #define likely(x) __builtin_expect(!!(x), 1)
 #define unlikely(x) __builtin_expect(!!(x), 0)
+#define __weak __attribute__((weak))
 
 #else /* #ifdef __GNUC__ */
 
 #define likely(x) (x)
 #define unlikely(x) (x)
+#define __weak
 
 #endif /* #ifdef __GNUC__ */