[PATCH v2 0/2] ARM: honor Thumb bit when calling procinfo setup functions

Ard Biesheuvel ard.biesheuvel at linaro.org
Tue Apr 21 03:59:41 PDT 2015


This addresses the observed issue where we are inadvertently relying
on the procinfo setup function to use the same instruction set as the
call site instead of using the correct annotation (patch #1) and call
sequence (patch #2)

Changes since v1:
- do not use BSYM() but ENDPROC() to ensure the functions are correctly
  annotated
- use bx for all registers only when building a Thumb2 kernel

Ard Biesheuvel (2):
  ARM: use ENDPROC() to annotate all v7 asm setup functions
  ARM: Thumb2: use "bx reg" not "mov pc, reg" for all registers

 arch/arm/include/asm/assembler.h | 2 ++
 arch/arm/mm/proc-v7.S            | 9 +++++++++
 2 files changed, 11 insertions(+)

-- 
1.8.3.2




More information about the linux-arm-kernel mailing list