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

Commit 88d927e9 authored by Tony Lindgren's avatar Tony Lindgren Committed by Russell King
Browse files

ARM: 6465/1: Fix data abort accessing proc_info from __lookup_processor_type



Commit 5085f3ff added better support for
CONFIG_HOTPLUG_CPU by keeping proc_info around. However, depending on
the Kconfig options selected, this can make the booting fail mysteriously
early on.

Turns out a data abort can happen in __lookup_processor in ldmia r5 {r3, r4}.
When it happens the address loaded to r5 is not aligned. Fix the problem by
aligning proc_info.

Reported-by: default avatarAnand Gadiyar <gadiyar@ti.com>
Tested-by: default avatarAnand Gadiyar <gadiyar@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d463f363
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ SECTIONS
			*(.rodata.*)
			*(.glue_7)
			*(.glue_7t)
		. = ALIGN(4);
		*(.got)			/* Global offset table		*/
			ARM_CPU_KEEP(PROC_INFO)
	}