On Wed, 6 Aug 2008 18:15:31 +0100, Ralf Baechle <ralf@xxxxxxxxxxxxxx> wrote: > > http://www.linux-mips.org/archives/linux-mips/2007-11/msg00123.html > > > > To support vr41's standby instruction in same way, we might have to > > synthesise rollback_handle_int, etc. or r4k_wait at runtime... > > The infrastructure for that is now there :-) Another question of course > is if that stuff really deserve this ultimate degree of optimization. Well, this patch on top of my patch might be enough. --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S @@ -152,7 +152,7 @@ LEAF(r4k_wait) .set push .set noat MFC0 k0, CP0_EPC - PTR_LA k1, r4k_wait + PTR_L k1, cpu_wait ori k0, 0x1f /* 32 byte rollback region */ xori k0, 0x1f bne k0, k1, 9f Of course old_vr41xx_cpu_wait should be modified as like as r4k_wait and "rollback = (cpu_wait == r4k_wait)" lines in traps.c should be changed... --- Atsushi Nemoto