[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 01/22] include/uk: introduce __weak_alias macro



Signed-off-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 include/uk/essentials.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/uk/essentials.h b/include/uk/essentials.h
index 3c16e308..dc1d69b0 100644
--- a/include/uk/essentials.h
+++ b/include/uk/essentials.h
@@ -76,6 +76,10 @@ extern "C" {
 #ifndef __align
 #define __align(bytes)         __attribute__((aligned(bytes)))
 #endif
+#ifndef __weak_alias
+#define __weak_alias(old, new) \
+       extern __typeof(old) new __attribute__((weak, alias(#old)))
+#endif
 
 /**
   * Mark a function as constructor
-- 
2.19.2


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.