Explorar o código

Merge with git://www.denx.de/git/u-boot.git

Stefan Roese %!s(int64=17) %!d(string=hai) anos
pai
achega
b5dc4403f6
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 6 0
      include/asm-ppc/processor.h
  2. 1 1
      include/ppc_asm.tmpl

+ 6 - 0
include/asm-ppc/processor.h

@@ -628,6 +628,12 @@
 #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 */

+ 1 - 1
include/ppc_asm.tmpl

@@ -235,7 +235,7 @@
 	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;	\