summaryrefslogtreecommitdiffstats
path: root/physmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'physmap.c')
-rw-r--r--physmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/physmap.c b/physmap.c
index 03fef95..1f47ce0 100644
--- a/physmap.c
+++ b/physmap.c
@@ -241,6 +241,8 @@ void *physmap_try_ro(const char *descr, unsigned long phys_addr, size_t len)
return physmap_common(descr, phys_addr, len, PHYSMAP_MAYFAIL, PHYSMAP_RO);
}
+#if defined(__i386__) || defined(__x86_64__)
+
#ifdef __linux__
/*
* Reading and writing to MSRs, however requires instructions rdmsr/wrmsr,
@@ -462,4 +464,6 @@ void cleanup_cpu_msr(void)
#endif
#endif
#endif
-
+#else
+/* Does MSR exist on non-x86 architectures? */
+#endif
OpenPOWER on IntegriCloud