[PATCH 2/4] bsps/powerpc: Delete unused EXC_DAR field
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Nov 26 17:17:03 UTC 2012
The Data Access Register (DAR) is not saved in the exception prologue.
---
.../powerpc/mvme5500/vectors/exceptionhandler.c | 1 -
c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h | 2 --
.../powerpc/new-exceptions/bspsupport/vectors.h | 2 --
3 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c b/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c
index ba46564..2e6a9bf 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c
+++ b/c/src/lib/libbsp/powerpc/mvme5500/vectors/exceptionhandler.c
@@ -160,7 +160,6 @@ int quiet=0;
printk("\t CTR = %08x\n", excPtr->EXC_CTR);
printk("\t XER = %08x\n", excPtr->EXC_XER);
printk("\t LR = %08x\n", excPtr->EXC_LR);
- printk("\t DAR = %08x\n", excPtr->EXC_DAR);
BSP_printStackTrace(excPtr);
}
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
index 693f148..3ff610e 100644
--- a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
+++ b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
@@ -70,7 +70,6 @@
#define EXC_CTR_OFFSET 152
#define EXC_XER_OFFSET 156
#define EXC_LR_OFFSET 160
-#define EXC_DAR_OFFSET 164
/*
* maintain the EABI requested 8 bytes aligment
* As SVR4 ABI requires 16, make it 16 (as some
@@ -127,7 +126,6 @@ typedef struct {
unsigned EXC_CTR;
unsigned EXC_XER;
unsigned EXC_LR;
- unsigned EXC_DAR;
}CPU_Exception_frame;
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h
index 9fcdb56..8d44d69 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h
@@ -209,7 +209,6 @@ extern "C" {
#define GPR29_OFFSET PPC_EXC_GPR_OFFSET(29)
#define GPR30_OFFSET PPC_EXC_GPR_OFFSET(30)
#define GPR31_OFFSET PPC_EXC_GPR_OFFSET(31)
-#define EXC_DAR_OFFSET PPC_EXC_GPR_OFFSET(32)
#define EXC_GENERIC_SIZE PPC_EXC_FRAME_SIZE
@@ -291,7 +290,6 @@ typedef struct {
PPC_GPR_TYPE GPR29;
PPC_GPR_TYPE GPR30;
PPC_GPR_TYPE GPR31;
- unsigned EXC_DAR;
} BSP_Exception_frame;
/** @} */
--
1.7.7
More information about the devel
mailing list