patch-2.3.16 linux/include/linux/linkage.h
Next file: linux/include/linux/mca.h
Previous file: linux/include/linux/kernel.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Aug 30 18:12:12 1999
- Orig file:
v2.3.15/linux/include/linux/linkage.h
- Orig date:
Tue Dec 1 11:28:24 1998
diff -u --recursive --new-file v2.3.15/linux/include/linux/linkage.h linux/include/linux/linkage.h
@@ -13,6 +13,17 @@
#define asmlinkage CPP_ASMLINKAGE
#endif
+#ifdef __sh__
+#define STRINGIFY(X) #X
+#define SYMBOL_NAME_STR(X) STRINGIFY(SYMBOL_NAME(X))
+#ifdef __STDC__
+#define SYMBOL_NAME(X) _##X
+#define SYMBOL_NAME_LABEL(X) _##X##:
+#else
+#define SYMBOL_NAME(X) _/**/X
+#define SYMBOL_NAME_LABEL(X) _/**/X/**/:
+#endif
+#else
#define SYMBOL_NAME_STR(X) #X
#define SYMBOL_NAME(X) X
#ifdef __STDC__
@@ -20,6 +31,7 @@
#else
#define SYMBOL_NAME_LABEL(X) X/**/:
#endif
+#endif
#ifdef __arm__
#define __ALIGN .align 0
@@ -29,6 +41,10 @@
#define __ALIGN .align 4
#define __ALIGN_STR ".align 4"
#else
+#ifdef __sh__
+#define __ALIGN .balign 4
+#define __ALIGN_STR ".balign 4"
+#else
#if !defined(__i486__) && !defined(__i586__)
#define __ALIGN .align 4,0x90
#define __ALIGN_STR ".align 4,0x90"
@@ -36,6 +52,7 @@
#define __ALIGN .align 16,0x90
#define __ALIGN_STR ".align 16,0x90"
#endif /* __i486__/__i586__ */
+#endif /* __sh__ */
#endif /* __mc68000__ */
#endif /* __arm__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)