]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 9180/1: Thumb2: align ALT_UP() sections in modules sufficiently
authorArd Biesheuvel <ardb@kernel.org>
Tue, 18 Jan 2022 18:32:17 +0000 (19:32 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 19 Jan 2022 11:10:54 +0000 (11:10 +0000)
commit73659277d32f509d0009fbccaddd33ad537e15fe
tree50c3e354b5f42fb421b6cda47225ac16fc271f4e
parent90ae5dfda2b19132a161632475110b2716266096
ARM: 9180/1: Thumb2: align ALT_UP() sections in modules sufficiently

When building for Thumb2, the .alt.smp.init sections that are emitted by
the ALT_UP() patching code may not be 32-bit aligned, even though the
fixup_smp_on_up() routine expects that. This results in alignment faults
at module load time, which need to be fixed up by the fault handler.

So let's align those sections explicitly, and prevent this from occurring.

Cc: <stable@vger.kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/assembler.h
arch/arm/include/asm/processor.h