[PATCH 2/2] powerpc: Add 2.06 tlbie mnemonics
Michael Neuling
mikey at neuling.org
Tue Apr 28 22:40:30 EST 2009
Kumar,
> > From: Milton Miller <miltonm at bga.com>
> >
> > This adds the PowerPC 2.06 tlbie mnemonics and keeps backwards
> > compatibilty for CPUs before 2.06.
> >
> > Only useful for bare metal systems.
> >
> > Signed-off-by: Milton Miller <miltonm at bga.com>
> > Signed-off-by: Michael Neuling <mikey at neuling.org>
> > ---
> >
> > arch/powerpc/include/asm/ppc-opcode.h | 3 +++
> > arch/powerpc/kernel/cputable.c | 6 ++++--
> > arch/powerpc/mm/hash_native_64.c | 11 +++++++++--
>
> did you miss the update to mmu.h to add MMU_FTR_TLBIE_206?
Yep a missing quilt add. Thanks
>
> > 3 files changed, 16 insertions(+), 4 deletions(-)
> >
> > Index: linux-2.6-ozlabs/arch/powerpc/include/asm/ppc-opcode.h
> > ===================================================================
> > --- linux-2.6-ozlabs.orig/arch/powerpc/include/asm/ppc-opcode.h
> > +++ linux-2.6-ozlabs/arch/powerpc/include/asm/ppc-opcode.h
> > @@ -79,4 +79,7 @@
> > #define PPC_WAIT(w) stringify_in_c(.long PPC_INST_WAIT | \
> > __PPC_WC(w))
> >
> > +#define TLBIE(lp,a) \
> > + stringify_in_c(.long 0x7c000264 | ((a) << 11) | ((lp) << 21))
> > +
>
> Can you match the format of the file and define a PPC_INST_TLBIE
Sorry, I obviously just stuck my crap in there without looking at the
nice macros I could use.
Repost coming.
Mikey
More information about the Linuxppc-dev
mailing list