mirror of
https://github.com/torvalds/linux.git
synced 2026-12-04 12:24:18 +00:00
With the help of newly changed function parse_crashkernel() and generic reserve_crashkernel_generic(), crashkernel reservation can be simplified by steps: 1) Add a new header file <asm/crash_core.h>, and define CRASH_ALIGN, CRASH_ADDR_LOW_MAX, CRASH_ADDR_HIGH_MAX and DEFAULT_CRASH_KERNEL_LOW_SIZE in <asm/crash_core.h>; 2) Add arch_reserve_crashkernel() to call parse_crashkernel() and reserve_crashkernel_generic(); 3) Add ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION Kconfig in arch/arm64/Kconfig. The old reserve_crashkernel_low() and reserve_crashkernel() can be removed. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Baoquan He <[email protected]> Reviewed-by: Zhen Lei <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Chen Jiahao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
11 lines
329 B
C
11 lines
329 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _ARM64_CRASH_CORE_H
|
|
#define _ARM64_CRASH_CORE_H
|
|
|
|
/* Current arm64 boot protocol requires 2MB alignment */
|
|
#define CRASH_ALIGN SZ_2M
|
|
|
|
#define CRASH_ADDR_LOW_MAX arm64_dma_phys_limit
|
|
#define CRASH_ADDR_HIGH_MAX (PHYS_MASK + 1)
|
|
#endif
|