[PATCH v2 1/2] ARM PJ4B: Add support for errata 4742

Russell King - ARM Linux linux at arm.linux.org.uk
Tue Jun 4 14:21:37 EDT 2013


On Tue, Jun 04, 2013 at 02:19:32PM -0400, Nicolas Pitre wrote:
> On Tue, 4 Jun 2013, Russell King - ARM Linux wrote:
> 
> > On Tue, Jun 04, 2013 at 02:07:29PM -0400, Nicolas Pitre wrote:
> > > Alternatively, the following could be done:
> > > 
> > > #ifdef CONFIG_CPU_PJ4B
> > > 
> > > 	.equ	cpu_pj4b_switch_mm,	cpu_v7_switch_mm
> > > 	.equ	cpu_pj4b_set_pte_ex,	cpu_v7_set_pte_ex
> > 
> > No, that doesn't work.  I did forget a hunk from my patch though, which
> > needs the pj4b symbols to be global:
> 
> 	.macro globl_equ x, y
> 	.globl	x
> 	.equ	x, y
> 	.endm
> 
> 	.globl_equ	cpu_pj4b_switch_mm,     cpu_v7_switch_mm
> 	.globl_equ	cpu_pj4b_set_pte_ex,	cpu_v7_set_pte_ex

Which is really no different from doing what I did.



More information about the linux-arm-kernel mailing list