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

Commit 3f2d4f56 authored by Mika Westerberg's avatar Mika Westerberg Committed by Russell King
Browse files

ARM: 6052/1: kdump: make kexec work in interrupt context



When crash happens in interrupt context there is no userspace context.
We always use current->active_mm in those cases.

Signed-off-by: default avatarMika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 82c6f5a5
Loading
Loading
Loading
Loading
+6 −4
Original line number Original line Diff line number Diff line
@@ -1054,10 +1054,12 @@ void setup_mm_for_reboot(char mode)
	pgd_t *pgd;
	pgd_t *pgd;
	int i;
	int i;


	if (current->mm && current->mm->pgd)
	/*
		pgd = current->mm->pgd;
	 * We need to access to user-mode page tables here. For kernel threads
	else
	 * we don't have any user-mode mappings so we use the context that we
		pgd = init_mm.pgd;
	 * "borrowed".
	 */
	pgd = current->active_mm->pgd;


	base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT;
	base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT;
	if (cpu_architecture() <= CPU_ARCH_ARMv5TEJ && !cpu_is_xscale())
	if (cpu_architecture() <= CPU_ARCH_ARMv5TEJ && !cpu_is_xscale())