[RFC PATCH v3] ARM: Introduce patching of phys_to_virt and vice versa

Russell King - ARM Linux linux at arm.linux.org.uk
Sun Nov 7 11:48:38 EST 2010


On Sat, Nov 06, 2010 at 02:40:46AM +0800, Eric Miao wrote:
> Changes since last version, fixup of the patching stub instructions is now
> performed in assembly code before MMU is on, that means no flush cache is
> necessary.

I assume that there's more to this, because this doesn't include code to
call __fixup_phys_virt.  As it corrupts r1/r2, I'm not sure where you
intend to call this from, as they must be preserved around the time that
__fixup_smp is called.

Also, I assume this only works with ARM code, not Thumb2 ?



More information about the linux-arm-kernel mailing list