Commit cc3023b9f95d7ac959a764471a65001062aecf41

Authored by Rafal Jaworowski
Committed by Detlev Zundel
1 parent 3a6cab844c

Fix breakage of 8xx boards from recent commit.

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>

Showing 2 changed files with 7 additions and 1 deletions Side-by-side Diff

include/asm-ppc/processor.h
... ... @@ -628,6 +628,12 @@
628 628 #define MAS6 SPRN_MAS6
629 629 #define MAS7 SPRN_MAS7
630 630  
  631 +#if defined(CONFIG_4xx) || defined(CONFIG_44x) || defined(CONFIG_MPC85xx)
  632 +#define DAR_DEAR DEAR
  633 +#else
  634 +#define DAR_DEAR DAR
  635 +#endif
  636 +
631 637 /* Device Control Registers */
632 638  
633 639 #define DCRN_BEAR 0x090 /* Bus Error Address Register */
include/ppc_asm.tmpl
... ... @@ -235,7 +235,7 @@
235 235 stw r22,_CTR(r21); \
236 236 mfspr r20,XER; \
237 237 stw r20,_XER(r21); \
238   - mfspr r20,DEAR; \
  238 + mfspr r20, DAR_DEAR; \
239 239 stw r20,_DAR(r21); \
240 240 mfspr r22,reg1; \
241 241 mfspr r23,reg2; \