aboutsummaryrefslogtreecommitdiffstats
path: root/arch/loongarch/include/asm/crash_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/loongarch/include/asm/crash_core.h')
-rw-r--r--arch/loongarch/include/asm/crash_core.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/loongarch/include/asm/crash_core.h b/arch/loongarch/include/asm/crash_core.h
new file mode 100644
index 000000000000..218bdbfa527b
--- /dev/null
+++ b/arch/loongarch/include/asm/crash_core.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#ifndef _LOONGARCH_CRASH_CORE_H
+#define _LOONGARCH_CRASH_CORE_H
+
+#define CRASH_ALIGN SZ_2M
+
+#define CRASH_ADDR_LOW_MAX SZ_4G
+#define CRASH_ADDR_HIGH_MAX memblock_end_of_DRAM()
+
+extern phys_addr_t memblock_end_of_DRAM(void);
+
+#endif