Skip to contentSkip to conversation

abstract type/size specification for assembly

PATCH New Jan Beulich 1 participant 1 message Jan 30, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 abstract type/size specification for assembly

Andrew,

would you consider merging attached trivial patch to simplify specifying the size and, for functions, also the type in assembly files?

Thanks, Jan

From: Jan Beulich <[email protected]>

Provide abstraction for generating type and size information of assembly routines and data.

include/linux/linkage.h renamed from home/jbeulich/tmp/linux-2.6.16-rc1/include/linux/linkage.h +5 -0
diff -Npru /home/jbeulich/tmp/linux-2.6.16-rc1/include/linux/linkage.h 2.6.16-rc1-end-endproc/include/linux/linkage.h
@@ -39,6 +39,11 @@
   ALIGN; \
   name:
 
+#define ENDPROC(name) \
+  .type name, @function; \
+  END(name)
+#define END(name) \
+  .size name, .-name
 
 #endif