]> git.sur5r.net Git - u-boot/commitdiff
Fix breakage of 8xx boards from recent commit.
authorRafal Jaworowski <raj@semihalf.com>
Thu, 19 Jul 2007 15:12:28 +0000 (17:12 +0200)
committerDetlev Zundel <dzu@denx.de>
Thu, 19 Jul 2007 15:12:28 +0000 (17:12 +0200)
This patch fixes the negative consequences for 8xx of the recent
"ppc4xx: Clean up 440 exceptions handling" commit.

Signed-off-by: Rafal Jaworowski <raj@semihalf.com>
include/asm-ppc/processor.h
include/ppc_asm.tmpl

index 9780fe15c0db45b6f9d958c0e2a6718bdcda38f0..4898dd41cc3b2db5c992335668cc3f49d2af651a 100644 (file)
 #define MAS6   SPRN_MAS6
 #define MAS7   SPRN_MAS7
 
+#if defined(CONFIG_4xx) || defined(CONFIG_44x) || defined(CONFIG_MPC85xx)
+#define DAR_DEAR DEAR
+#else
+#define DAR_DEAR DAR
+#endif
+
 /* Device Control Registers */
 
 #define DCRN_BEAR      0x090   /* Bus Error Address Register */
index 9f4029f2afca88d35c074f15c37d914b2328a020..ac8f31768310cddcfe572e8f35a3c8332f9161ca 100644 (file)
        stw     r22,_CTR(r21);  \
        mfspr   r20,XER;        \
        stw     r20,_XER(r21);  \
-       mfspr   r20,DEAR;       \
+       mfspr   r20, DAR_DEAR;  \
        stw     r20,_DAR(r21);  \
        mfspr   r22,reg1;       \
        mfspr   r23,reg2;       \