[PATCH 2/6] 8xx: Update TLB asm so it behaves as linux mm expects.
Benjamin Herrenschmidt
benh at kernel.crashing.org
Fri Oct 9 17:30:01 EST 2009
On Fri, 2009-10-09 at 08:16 +0200, Joakim Tjernlund wrote:
> Which will be fixed once I activate:
> #if 0 /* Not yet */
> /* Honour kernel RO, User NA */
> andi. r11, r10, _PAGE_USER | _PAGE_RW
> bne- cr0, 5f
> ori r10,r10, 0x200 /* Extended encoding, bit 22 */
> #endif
Which will be more code including a conditional than my proposed
trick :-) I'll try to write the asm for you later.
> Not convinced that your trick will be a win. The other
> bits will need to move around too. Maybe I misunderstand
> something?
I'll write some code to show you what I have in mind later.
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list