Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax
In directory sc8-pr-cvs1:/tmp/cvs-serv11528
Modified Files:
unistd.h
Log Message:
Add cond_syscall() macro
Index: unistd.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/unistd.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- unistd.h 20 May 2002 00:33:39 -0000 1.3
+++ unistd.h 12 Dec 2002 01:12:41 -0000 1.4
@@ -491,4 +491,13 @@
#endif
+/*
+ * "Conditional" syscalls
+ *
+ * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
+ * but it doesn't work on all toolchains, so we just do it by hand
+ */
+#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
+
+
#endif /* _ASM_VAX_UNISTD_H_ */
|