Define macros for special sections
authorRonald G. Minnich <rminnich@google.com>
Mon, 20 Jan 2014 21:10:13 +0000 (13:10 -0800)
committerRonald G. Minnich <rminnich@google.com>
Mon, 20 Jan 2014 21:10:13 +0000 (13:10 -0800)
These names might not be exactly what we want.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/include/ns.h

index 0abc05a..d89ceb4 100644 (file)
@@ -1018,4 +1018,10 @@ static inline int abs(int a)
 }
 
 extern char *eve;
+
+/* special sections */
+#define __devtab  __attribute__((__section__(".devtab")))
+#define __ether  __attribute__((__section__(".ether")))
+#define __media  __attribute__((__section__(".media")))
+
 #endif /* ROS_KERN_NS_H */