|
@@ -3,8 +3,17 @@
|
|
|
|
|
|
#include <asm/page.h>
|
|
#include <asm/page.h>
|
|
|
|
|
|
-/* Kdump kernel runs at 32 MB, change at your peril. */
|
|
|
|
|
|
+/*
|
|
|
|
+ * If CONFIG_RELOCATABLE is enabled we can place the kdump kernel anywhere.
|
|
|
|
+ * To keep enough space in the RMO for the first stage kernel on 64bit, we
|
|
|
|
+ * place it at 64MB. If CONFIG_RELOCATABLE is not enabled we must place
|
|
|
|
+ * the second stage at 32MB.
|
|
|
|
+ */
|
|
|
|
+#if defined(CONFIG_RELOCATABLE) && defined(CONFIG_PPC64)
|
|
|
|
+#define KDUMP_KERNELBASE 0x4000000
|
|
|
|
+#else
|
|
#define KDUMP_KERNELBASE 0x2000000
|
|
#define KDUMP_KERNELBASE 0x2000000
|
|
|
|
+#endif
|
|
|
|
|
|
/* How many bytes to reserve at zero for kdump. The reserve limit should
|
|
/* How many bytes to reserve at zero for kdump. The reserve limit should
|
|
* be greater or equal to the trampoline's end address.
|
|
* be greater or equal to the trampoline's end address.
|