summaryrefslogtreecommitdiff
path: root/kexec/arch/mips/crashdump-mips.c
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2016-12-02 10:49:10 +0100
committerSimon Horman <horms@verge.net.au>2016-12-09 08:56:27 +0100
commit83a53ce9248fbcdf9dcac507b895d818db8c1706 (patch)
treeab0f0c93cf5c8e75df11345eeba0ab70ed38507e /kexec/arch/mips/crashdump-mips.c
parent18bf48b15c289e88cb65cdc758749e2735eac291 (diff)
mips: add dtb loading support
Kexec for MIPS currently does not support loading devicetrees, unless they are embedded in the kernel elf file. Add an option to either pass a new dtb file or - if not specified - to be generated from existing device tree on the device. As new generic platforms require a dtb to be passed separately this is required for such platforms and will be ignored by the kernel otherwise. Generic kexec infrastructure for dtb support is used. Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/mips/crashdump-mips.c')
-rw-r--r--kexec/arch/mips/crashdump-mips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
index 278ee01..d6cff5a 100644
--- a/kexec/arch/mips/crashdump-mips.c
+++ b/kexec/arch/mips/crashdump-mips.c
@@ -39,6 +39,9 @@
* A separate program header is created for backup region */
static struct memory_range crash_memory_range[CRASH_MAX_MEMORY_RANGES];
+/* Not used currently but required by generic fs2dt code */
+struct memory_ranges usablemem_rgns;
+
/* Memory region reserved for storing panic kernel and other data. */
static struct memory_range crash_reserved_mem;