[PATCH] ARM: Add SWP/SWPB emulation for ARMv7 processors (v3)

Jamie Lokier jamie at shareable.org
Wed Jan 6 13:17:05 EST 2010


Catalin Marinas wrote:
> > Is there any reason why this wasn't always like that?
> 
> On ARMv6 onwards (where this user RO, kernel RO is supported) we cannot
> easily differentiate between the vectors page and a normal kernel page
> unless we use another L_PTE_ bit. We need the vectors page to be
> writable if there is no TLS register in hardware (I guess we could use
> domain switching to override this though). But on ARMv7 we always have a
> TLS register, so no need to write to the vectors page.

Could you map the TLS page writable (kernel access only) at another
address at the same time, carefully choosing an aliasing address so
that no cache flush is needed after writing?

-- Jamie



More information about the linux-arm-kernel mailing list