Package: hwinfo
Version: 15.3-1
Severity: normal

Hi, see attached patch, shamelessly stolen from the Gentoo bugtracker, 
fixes the problem on i386 for me.

http://bugs.gentoo.org/236449

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--- a/src/int10/i10_v86.c
+++ b/src/int10/i10_v86.c
@@ -27,6 +27,14 @@
 #include <string.h>
 #ifdef __i386__
 #include <sys/vm86.h>
+/* 2.6.26+ kernels don't define the legacy masks. */
+#if defined(__linux__) && !defined(TF_MASK)
+      #define TF_MASK X86_EFLAGS_TF
+      #define IF_MASK X86_EFLAGS_IF
+      #define NT_MASK X86_EFLAGS_NT
+      #define VIF_MASK X86_EFLAGS_VIF
+      #define VIP_MASK X86_EFLAGS_VIP
+#endif
 #else
 #include "vm86_struct.h"
 #endif

Reply via email to