summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads/patches/patch-bt
blob: 369f3a5b62030a9fbf0203961ce73a05b9e5e0fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
$NetBSD: patch-bt,v 1.2 1999/12/28 05:08:11 wiz Exp $
diff -ur machdep/syscall-template-i386-netbsd-1.3.S machdep/syscall-template-i386-netbsd-1.3.S
--- machdep/syscall-template-i386-netbsd-1.3.S	Wed Nov  3 12:15:31 1999
+++ machdep/syscall-template-i386-netbsd-1.3.S	Wed Nov  3 19:28:47 1999
@@ -4,36 +4,33 @@
 #ifdef SYS___sigsuspend14
 #define SYS_sigsuspend SYS___sigsuspend14
 #endif
-#ifdef SYS___sigprocmask14
-#define SYS_sigprocmask SYS___sigprocmask14
+
+#ifdef SYS___sigaction14
+#define SYS_sigaction SYS___sigaction14
 #endif
 
-#ifdef __STDC__
+#ifdef SYS___sigpause14
+#define SYS_sigpause SYS___sigpause14
+#endif
 
-#define	SYSCALL(x)					\
-	.globl _machdep_sys_##x;		\
-									\
-_machdep_sys_##x:;					\
-									\
-	movl $(SYS_##x), %eax;			\
-	int $0x80;						\
-	jb	1b;							\
-	ret;							
-
-#else
-
-#define	SYSCALL(x)					\
-	.globl _machdep_sys_/**/x;		\
-									\
-_machdep_sys_/**/x:;				\
-									\
-	movl $(SYS_/**/x), %eax;		\
-	int $0x80;						\
-	jb	1b;							\
-	ret;							
+#ifdef SYS___sigprocmask14
+#define SYS_sigprocmask SYS___sigprocmask14
+#endif
 
+#ifdef SYS___vfork14xxxmlg
+#define SYS_vfork SYS___vfork14
 #endif
 
+/* XXXMLG What about sigantstack14 and sigreturn14? */
+
+#define	SYSCALL(x)					; \
+	.globl _C_LABEL(machdep_sys_##x)		; \
+							; \
+_C_LABEL(machdep_sys_##x):				; \
+	movl $(SYS_##x), %eax				; \
+	int $0x80					; \
+	jb	1b					; \
+	ret
 
 /*
  * Initial asm stuff for all functions.