[flashrom] [commit] r1924 - trunk

repository service svn at flashrom.org
Sun Feb 7 04:35:05 CET 2016


Author: stefanct
Date: Sun Feb  7 04:35:04 2016
New Revision: 1924
URL: http://flashrom.org/trac/flashrom/changeset/1924

Log:
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 at alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at>

Modified:
   trunk/physmap.c

Modified: trunk/physmap.c
==============================================================================
--- trunk/physmap.c	Mon Feb  1 01:27:25 2016	(r1923)
+++ trunk/physmap.c	Sun Feb  7 04:35:04 2016	(r1924)
@@ -457,7 +457,7 @@
 	/* 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>
 




More information about the flashrom mailing list