diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2016-02-07 03:35:04 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2016-02-07 03:35:04 +0000 |
commit | e5dcc15beaca17c73795067bfec36be83b48c5b0 (patch) | |
tree | cc0d777aa336ecdca6e40ea6b6785d34872b1e43 | |
parent | b3d7fba800d2ff3bc11e83f0a69aa4911624bc37 (diff) | |
download | ast2050-flashrom-e5dcc15beaca17c73795067bfec36be83b48c5b0.zip ast2050-flashrom-e5dcc15beaca17c73795067bfec36be83b48c5b0.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.
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>
-rw-r--r-- | physmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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> |