Classic PPC specific ASM (CONFIG_6XX)

Geert Uytterhoeven geert at linux-m68k.org
Fri Jan 21 23:36:14 EST 2005


On Fri, 21 Jan 2005, Jerome Glisse wrote:
> On Thu, 20 Jan 2005 16:14:42 -0700, Tom Rini <trini at kernel.crashing.org> wrote:
> > On Wed, Jan 12, 2005 at 08:10:58PM +0100, Jerome Glisse wrote:
> > 
> > > Wanted to know what is going on with CONFIG_6xx?  You will use
> > > my patch or do you have another better way ? :)
> > 
> > Can you resend it please?
> > 
> 
> Here is another version (the previous one used ifdef to comment
> out function call but i read somewhere that this doesn't follow
> codeguideline). Anyway i think that my patch is a ugly hack.
> 
> Signed-off-by: Jerome Glisse <j.glisse at gmail.com>
> 
> best,
> Jerome Glisse
> 
> 
> 
> diff -Naur linux/arch/ppc/boot/simple/misc-prep.c
> linux-2.6.10/arch/ppc/boot/simple/misc-prep.c
> --- linux/arch/ppc/boot/simple/misc-prep.c	2004-12-24 22:33:51.000000000 +0100
> +++ linux-2.6.10/arch/ppc/boot/simple/misc-prep.c	2005-01-21
> 12:09:50.976426672 +0100
> @@ -34,7 +34,11 @@
>  extern void serial_fixups(void);
>  extern struct bi_record *decompress_kernel(unsigned long load_addr,
>  		int num_words, unsigned long cksum);
> +#ifdef CONFIG_6XX
>  extern void disable_6xx_mmu(void);
> +#elif
> +void disable_6xx_mmu(void) {}
   ^^^^^^^^^^^^^^^^^^^^
You better make this one static inline.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds



More information about the Linuxppc64-dev mailing list