summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-07-20 14:28:02 +0200
committerStefan Roese <sr@denx.de>2007-07-20 14:28:02 +0200
commit9df6ad12cf6b0a26e3a74e994b7f1a5618341215 (patch)
treefbc9eb479ab8cedbcaeda9b838222265071b6755
parentc883f6ea32dce91f07670b3aafecf6c99b1e5341 (diff)
parentcc3023b9f95d7ac959a764471a65001062aecf41 (diff)
downloadu-boot-imx-9df6ad12cf6b0a26e3a74e994b7f1a5618341215.zip
u-boot-imx-9df6ad12cf6b0a26e3a74e994b7f1a5618341215.tar.gz
u-boot-imx-9df6ad12cf6b0a26e3a74e994b7f1a5618341215.tar.bz2
Merge with git://www.denx.de/git/u-boot.git
-rw-r--r--include/asm-ppc/processor.h6
-rw-r--r--include/ppc_asm.tmpl2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-ppc/processor.h b/include/asm-ppc/processor.h
index 9780fe1..4898dd4 100644
--- a/include/asm-ppc/processor.h
+++ b/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 */
diff --git a/include/ppc_asm.tmpl b/include/ppc_asm.tmpl
index 9f4029f..ac8f317 100644
--- a/include/ppc_asm.tmpl
+++ b/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; \