mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +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>
12 lines
286 B
C
12 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
|