[PATCH 1/4] bsps/powerpc: Delete unused EXC_MSR field
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Nov 26 17:17:02 UTC 2012
The MSR of the interrupted context is saved in the EXC_SRR1 field.
---
c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h | 1 -
.../libcpu/powerpc/mpc5xx/vectors/vectors_init.c | 1 -
.../powerpc/new-exceptions/bspsupport/vectors.h | 4 +---
3 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
index 217c41d..693f148 100644
--- a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
+++ b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors.h
@@ -127,7 +127,6 @@ typedef struct {
unsigned EXC_CTR;
unsigned EXC_XER;
unsigned EXC_LR;
- unsigned EXC_MSR;
unsigned EXC_DAR;
}CPU_Exception_frame;
diff --git a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors_init.c b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors_init.c
index 275e486..36560fa 100644
--- a/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors_init.c
+++ b/c/src/lib/libcpu/powerpc/mpc5xx/vectors/vectors_init.c
@@ -70,7 +70,6 @@ void C_default_exception_handler(CPU_Exception_frame* excPtr)
printk("\t CTR = %x\n", excPtr->EXC_CTR);
printk("\t XER = %x\n", excPtr->EXC_XER);
printk("\t LR = %x\n", excPtr->EXC_LR);
- printk("\t MSR = %x\n", excPtr->EXC_MSR);
if (excPtr->_EXC_number == ASM_DEC_VECTOR)
recoverable = 1;
if (excPtr->_EXC_number == ASM_SYS_VECTOR)
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 f91ba3b..9fcdb56 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/vectors.h
@@ -209,8 +209,7 @@ 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_MSR_OFFSET PPC_EXC_GPR_OFFSET(32)
-#define EXC_DAR_OFFSET (4 + EXC_MSR_OFFSET)
+#define EXC_DAR_OFFSET PPC_EXC_GPR_OFFSET(32)
#define EXC_GENERIC_SIZE PPC_EXC_FRAME_SIZE
@@ -292,7 +291,6 @@ typedef struct {
PPC_GPR_TYPE GPR29;
PPC_GPR_TYPE GPR30;
PPC_GPR_TYPE GPR31;
- unsigned EXC_MSR;
unsigned EXC_DAR;
} BSP_Exception_frame;
--
1.7.7
More information about the devel
mailing list