Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 905e945f authored by Tengfei Fan's avatar Tengfei Fan Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: use MODULES_END instead of KIMAGE_VADDR



Because of KIMAGE_VADDR is not defined by ARM32, so in order to
support minidump function on ARM32, so use MODULES_END instead
of KIMAGE_VADDR, because MODULES_END are defined by ARM64 and
ARM32.

Change-Id: Ie0d990baa17a207ceb7ed56faa9b5256f31a3e17
Signed-off-by: default avatarTengfei Fan <tengfeif@codeaurora.org>
parent 56cc7da7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/cache.h>
@@ -264,7 +264,7 @@ void dump_stack_minidump(u64 sp)

	is_vmap_stack = IS_ENABLED(CONFIG_VMAP_STACK);

	if (sp < KIMAGE_VADDR || sp > -256UL)
	if (sp < MODULES_END || sp > -256UL)
		sp = current_stack_pointer;

	/*