summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2011-09-16 23:59:30 +0000
committerStanislav Sedov <stas@FreeBSD.org>2011-09-16 23:59:30 +0000
commit36d340fef36e79b343aa3d3b853243593a9538e6 (patch)
tree669c08f8ec74d965c09675eb27b5d681678a38ca
parentadd xpi-clear_cache_button firefox addon (diff)
- Fix build for old binutils, which are used on FreeBSD 8.x.
Reported by: nox@ Obtained from: x86info git
-rw-r--r--sysutils/x86info/files/patch-features.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/x86info/files/patch-features.c b/sysutils/x86info/files/patch-features.c
new file mode 100644
index 000000000000..5b9d650d3028
--- /dev/null
+++ b/sysutils/x86info/files/patch-features.c
@@ -0,0 +1,11 @@
+--- features.c.orig 2011-09-16 16:57:57.000000000 -0700
++++ features.c 2011-09-16 16:58:06.000000000 -0700
+@@ -469,7 +469,7 @@
+ died = sigsetjmp(out, 1);
+
+ if (!died)
+- asm volatile("nopl 0(%eax)");
++ asm volatile(".byte 0x0f,0x1f,0x00 /* nopl 0(%eax) */");
+
+ printf("Long NOPs supported: %s\n", died ? "no" : "yes");
+ }