39b95b1059
(it builds for me on amd64/3.0, but the effect is easily verified by disassembling -- basically it is insignificant because "cpuid" always yields just 32 bit, but if newer compilers complain something must be done)
13 lines
431 B
Text
13 lines
431 B
Text
$NetBSD: patch-ab,v 1.6 2006/06/21 18:29:18 drochner Exp $
|
|
|
|
--- utils/cpu_accel.c.orig 2006-06-21 20:18:47.000000000 +0200
|
|
+++ utils/cpu_accel.c
|
|
@@ -117,7 +117,7 @@ static int x86_accel (void)
|
|
/* Slightly weirdified cpuid that preserves the ebx and edi required
|
|
by gcc for PIC offset table and frame pointer */
|
|
|
|
-#ifdef __LP64__
|
|
+#if defined(__LP64__) || defined(_LP64)
|
|
# define REG_b "rbx"
|
|
# define REG_S "rsi"
|
|
#else
|