mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-01 15:14:52 +00:00

In commit85fcde402d
("kexec: split crashkernel reservation code out from crash_core.c"), crashkernel reservation code is split out from crash_core.c, and add CRASH_RESERVE to control it. And also rename each ARCH's <asm/crash_core.h> to <asm/crash_reserve.h> accordingly. But the relevant part in LoongArch is missed. Do it now. Fixes:85fcde402d
("kexec: split crashkernel reservation code out from crash_core.c") Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
13 lines
286 B
C
13 lines
286 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _LOONGARCH_CRASH_RESERVE_H
|
|
#define _LOONGARCH_CRASH_RESERVE_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
|