From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Sun, 7 Nov 2010 16:48:38 +0000 Subject: [RFC PATCH v3] ARM: Introduce patching of phys_to_virt and vice versa In-Reply-To: References: Message-ID: <20101107164838.GA1759@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 ?