Skip to contentSkip to conversation

OMAP2/3: use different addresses for dump capture kernel

PATCH New Mika Westerberg 1 participant 1 message Apr 20, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP2/3: use different addresses for dump capture kernel

Dump capture kernels must be loaded into different address than the primary kernel hence we load them into physical address 0x84000000.

---
 arch/arm/mach-omap2/Makefile.boot        |    7 ++++++-
 arch/arm/plat-omap/include/plat/memory.h |    8 ++++++++
 2 files changed, 14 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/Makefile.boot +6 -1
index 565aff7..b958007 100644
@@ -1,3 +1,8 @@
-  zreladdr-y		:= 0x80008000
+ifeq ($(CONFIG_CRASH_DUMP),y)
+zreladdr-y		:= 0x84008000
+params_phys-y		:= 0x84000100
+else
+zreladdr-y		:= 0x80008000
 params_phys-y		:= 0x80000100
+endif
 initrd_phys-y		:= 0x80800000
arch/arm/plat-omap/include/plat/memory.h +8 -0
index d5306be..561ab32 100644
@@ -39,7 +39,15 @@
 #if defined(CONFIG_ARCH_OMAP1)
 #define PHYS_OFFSET		UL(0x10000000)
 #else
+/*
+ * We want crashdump kernels to be in different physical address than
+ * the primary kernel.
+ */
+#ifdef CONFIG_CRASH_DUMP
+#define PHYS_OFFSET		UL(0x84000000)
+#else
 #define PHYS_OFFSET		UL(0x80000000)
+#endif /* CONFIG_CRASH_DUMP */
 #endif
 
 /*
Signature · 1 line
1.5.6.5