linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ARM: honor Thumb bit when calling procinfo setup functions
@ 2015-04-21 10:59 Ard Biesheuvel
  2015-04-21 10:59 ` [PATCH v2 1/2] ARM: use ENDPROC() to annotate all v7 asm " Ard Biesheuvel
  2015-04-21 10:59 ` [PATCH v2 2/2] ARM: Thumb2: use "bx reg" not "mov pc, reg" for all registers Ard Biesheuvel
  0 siblings, 2 replies; 5+ messages in thread
From: Ard Biesheuvel @ 2015-04-21 10:59 UTC (permalink / raw)
  To: linux-arm-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-21 11:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-21 10:59 [PATCH v2 0/2] ARM: honor Thumb bit when calling procinfo setup functions Ard Biesheuvel
2015-04-21 10:59 ` [PATCH v2 1/2] ARM: use ENDPROC() to annotate all v7 asm " Ard Biesheuvel
2015-04-21 10:59 ` [PATCH v2 2/2] ARM: Thumb2: use "bx reg" not "mov pc, reg" for all registers Ard Biesheuvel
2015-04-21 11:15   ` Dave P Martin
2015-04-21 11:19     ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).