summaryrefslogtreecommitdiffstats
path: root/kexec/proc_iomem.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/proc_iomem.c')
-rw-r--r--kexec/proc_iomem.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/kexec/proc_iomem.c b/kexec/proc_iomem.c
new file mode 100644
index 0000000..85daa85
--- /dev/null
+++ b/kexec/proc_iomem.c
@@ -0,0 +1,13 @@
+#include "kexec.h"
+
+static const char proc_iomem_str[] = "/proc/iomem";
+
+/*
+ * Allow an architecture specific implementation of this
+ * function to override the location of a file looking a lot
+ * like /proc/iomem
+ */
+const char *proc_iomem(void)
+{
+ return proc_iomem_str;
+}