patch-2.1.131 linux/include/linux/linkage.h
Next file: linux/include/linux/lp.h
Previous file: linux/include/linux/joystick.h
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Tue Dec 1 11:28:24 1998
- Orig file:
v2.1.130/linux/include/linux/linkage.h
- Orig date:
Fri Oct 9 13:27:16 1998
diff -u --recursive --new-file v2.1.130/linux/include/linux/linkage.h linux/include/linux/linkage.h
@@ -2,9 +2,15 @@
#define _LINUX_LINKAGE_H
#ifdef __cplusplus
-#define asmlinkage extern "C"
+#define CPP_ASMLINKAGE extern "C"
#else
-#define asmlinkage
+#define CPP_ASMLINKAGE
+#endif
+
+#if defined __i386__ && (__GNUC__ > 2 || __GNUC_MINOR__ > 7)
+#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
+#else
+#define asmlinkage CPP_ASMLINKAGE
#endif
#define SYMBOL_NAME_STR(X) #X
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov