[PATCH] ARM: Add SWP/SWPB emulation for ARMv7 processors (v5)
Catalin Marinas
catalin.marinas at arm.com
Fri Apr 23 10:38:11 EDT 2010
On Fri, 2010-04-09 at 19:00 +0100, Leif Lindholm wrote:
> --- a/arch/arm/mm/proc-v7.S
> +++ b/arch/arm/mm/proc-v7.S
> @@ -152,8 +152,10 @@ ENTRY(cpu_v7_set_pte_ext)
>
> tst r1, #L_PTE_USER
> orrne r3, r3, #PTE_EXT_AP1
> +#ifndef CONFIG_SWP_EMULATE
> tstne r3, #PTE_EXT_APX
> bicne r3, r3, #PTE_EXT_APX | PTE_EXT_AP0
> +#endif
I think we could use:
#ifndef CONFIG_CPU_HAS_TLS_REG
...
#endif
And since we always have a TLS register on ARMv7, we can probably remove
these lines entirely.
--
Catalin
More information about the linux-arm-kernel
mailing list