summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2016-02-07 03:35:04 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2016-02-07 03:35:04 +0000
commit696af6c1267d0030cc971c68d26dd1add3b482c1 (patch)
treecc0d777aa336ecdca6e40ea6b6785d34872b1e43
parent32ab24f7061a838b6cac37ff1881964099936db9 (diff)
downloadflashrom-696af6c1267d0030cc971c68d26dd1add3b482c1.tar.gz
Fix compilation on non-i386 architectures on OpenBSD.
We use a header for MSR accesses on AMD Geodes that does only exist on 32 bit x86 machines. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1924 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--physmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/physmap.c b/physmap.c
index ca5afd0..a261ccd 100644
--- a/physmap.c
+++ b/physmap.c
@@ -457,7 +457,7 @@ void cleanup_cpu_msr(void)
/* Clear MSR file descriptor. */
fd_msr = -1;
}
-#elif defined(__OpenBSD__) /* This does only work for certain AMD Geode LX systems see amdmsr(4). */
+#elif defined(__OpenBSD__) && defined (__i386__) /* This does only work for certain AMD Geode LX systems see amdmsr(4). */
#include <sys/ioctl.h>
#include <machine/amdmsr.h>