linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / ppc / kernel / head_8xx.S
index 944c35c..c1e89ad 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ *  arch/ppc/kernel/except_8xx.S
+ *
  *  PowerPC version
  *    Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
  *  Rewritten by Cort Dougan (cort@cs.nmt.edu) for PReP
@@ -19,6 +21,7 @@
  *
  */
 
+#include <linux/config.h>
 #include <asm/processor.h>
 #include <asm/page.h>
 #include <asm/mmu.h>
@@ -354,7 +357,9 @@ InstructionTLBMiss:
 
        . = 0x1200
 DataStoreTLBMiss:
+#ifdef CONFIG_8xx_CPU6
        stw     r3, 8(r0)
+#endif
        DO_8xx_CPU6(0x3f80, r3)
        mtspr   SPRN_M_TW, r10  /* Save a couple of working registers */
        mfcr    r10
@@ -414,7 +419,9 @@ DataStoreTLBMiss:
        lwz     r11, 0(r0)
        mtcr    r11
        lwz     r11, 4(r0)
+#ifdef CONFIG_8xx_CPU6
        lwz     r3, 8(r0)
+#endif
        rfi
 
 /* This is an instruction TLB error on the MPC8xx.  This could be due