pkgsrc/sysutils/mbmon/patches/patch-ae

14 lines
383 B
Text

$NetBSD: patch-ae,v 1.1 2004/11/28 11:26:44 hira Exp $
--- io_cpu.h.orig 2004-11-28 20:10:23.000000000 +0900
+++ io_cpu.h 2004-11-28 20:10:52.000000000 +0900
@@ -21,6 +21,9 @@
#include "machine/sysarch.h"
#define SET_IOPL() i386_iopl(1)
#define RESET_IOPL() i386_iopl(0)
+# ifdef __amd64__
+# define i386_iopl x86_64_iopl
+# endif
#else /* FreeBSD */
extern int iofl;