1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 15:12:36 +02:00

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.

Corresponding to flashrom svn r1924.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner 2016-02-07 03:35:04 +00:00
parent b3d7fba800
commit e5dcc15bea

View File

@ -457,7 +457,7 @@ void cleanup_cpu_msr(void)
/* Clear MSR file descriptor. */ /* Clear MSR file descriptor. */
fd_msr = -1; 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 <sys/ioctl.h>
#include <machine/amdmsr.h> #include <machine/amdmsr.h>