Pending interrupt handling support for NetBSD and FreeBSD

Bang Jun-Young bjy at mogua.org
Sun Jun 24 10:34:08 CDT 2001


Hi, 

NetBSD and FreeBSD ports of Wine haven't even been compiled since Ove 
Kaaven's patch made on 2001-06-20. This patch fixes that.

	* dlls/ntdll/signal_i386.c:
	Bang Jun-Young <bjy at mogua.org>
	Define VIF_MASK and VIP_MASK on NetBSD and FreeBSD. Those
	correspond to PSL_VIF and PSL_VIP, respectively.
	
	* configure.in include/config.h.in:
	Bang Jun-Young <bjy at mogua.org>
	Add checks for machine/psl.h and psl.h for pending interrupt
	handling.
	
-- 
Bang Jun-Young <bjy at mogua.org>

-------------- next part --------------
Index: dlls/ntdll/signal_i386.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/signal_i386.c,v
retrieving revision 1.26
diff -u -r1.26 signal_i386.c
--- dlls/ntdll/signal_i386.c	2001/06/21 00:39:34	1.26
+++ dlls/ntdll/signal_i386.c	2001/06/24 15:01:50
@@ -29,6 +29,14 @@
 # include <sys/vm86.h>
 #endif
 
+#ifdef HAVE_MACHINE_PSL_H
+# include <machine/psl.h>
+#endif
+
+#ifdef HAVE_PSL_H
+# include <psl.h>
+#endif
+
 #ifdef HAVE_SYS_SIGNAL_H
 # include <sys/signal.h>
 #endif
@@ -335,6 +343,11 @@
 
 #define T_UNKNOWN     (-1)  /* Unknown fault (TRAP_sig not defined) */
 
+#if defined(__NetBSD__) || defined(__FreeBSD__)
+#define VIF_MASK	PSL_VIF
+#define VIP_MASK	PSL_VIP
+#endif
+ 
 #include "wine/exception.h"
 #include "winnt.h"
 #include "stackframe.h"
Index: configure.in
===================================================================
RCS file: /home/wine/wine/configure.in,v
retrieving revision 1.209
diff -u -u -r1.209 configure.in
--- configure.in	2001/06/19 03:30:14	1.209
+++ configure.in	2001/06/24 14:59:22
@@ -881,12 +881,14 @@
 	linux/input.h \
 	linux/joystick.h \
 	linux/ucdrom.h \
+	machine/psl.h \
 	net/if.h \
 	netdb.h \
 	netinet/in.h \
 	netinet/in_systm.h \
 	netinet/ip.h \
 	netinet/tcp.h \
+	psl.h \
 	pty.h \
 	resolv.h \
 	sched.h \
Index: include/config.h.in
===================================================================
RCS file: /home/wine/wine/include/config.h.in,v
retrieving revision 1.79
diff -u -u -r1.79 config.h.in
--- include/config.h.in	2001/06/08 19:34:57	1.79
+++ include/config.h.in	2001/06/24 15:00:58
@@ -376,6 +376,9 @@
 /* Define if you have the <linux/ucdrom.h> header file.  */
 #undef HAVE_LINUX_UCDROM_H
 
+/* Define if you have the <machine/psl.h> header file.  */
+#undef HAVE_MACHINE_PSL_H
+
 /* Define if you have the <machine/soundcard.h> header file.  */
 #undef HAVE_MACHINE_SOUNDCARD_H
 
@@ -399,6 +402,9 @@
 
 /* Define if you have the <netinet/tcp.h> header file.  */
 #undef HAVE_NETINET_TCP_H
+
+/* Define if you have the <psl.h> header file.  */
+#undef HAVE_PSL_H
 
 /* Define if you have the <pty.h> header file.  */
 #undef HAVE_PTY_H


More information about the wine-patches mailing list