summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 22:00:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-01 22:00:16 +0000
commit69f7d7e3c60403e43fc414697b83036d4371ca31 (patch)
treee5f0cdb1088a00a5571b08a6ccb243a4be3d5127
parentf4807abbd0a3fe8bc8da9b83e9fdde1d29f62fcd (diff)
downloadrtems-69f7d7e3c60403e43fc414697b83036d4371ca31.tar.bz2
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* cpu.c: Removed warnings.
-rw-r--r--cpukit/score/cpu/arm/ChangeLog4
-rw-r--r--cpukit/score/cpu/arm/cpu.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/score/cpu/arm/ChangeLog b/cpukit/score/cpu/arm/ChangeLog
index 7926afa82d..1fdad4b602 100644
--- a/cpukit/score/cpu/arm/ChangeLog
+++ b/cpukit/score/cpu/arm/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-01 Joel Sherrill <joel@OARcorp.com>
+
+ * cpu.c: Removed warnings.
+
2002-10-31 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Removed warning.
diff --git a/cpukit/score/cpu/arm/cpu.c b/cpukit/score/cpu/arm/cpu.c
index 54a556bc9f..3ae0df2474 100644
--- a/cpukit/score/cpu/arm/cpu.c
+++ b/cpukit/score/cpu/arm/cpu.c
@@ -238,7 +238,6 @@ void do_data_abort(unsigned32 insn, unsigned32 spsr,
unsigned32 rd;
unsigned8 *src_addr;
- unsigned8 *dest_addr;
unsigned32 tmp;
g_data_abort_insn_list[g_data_abort_cnt & 0x3ff] = ctx->register_lr - 8;
@@ -282,7 +281,7 @@ void do_data_abort(unsigned32 insn, unsigned32 spsr,
printk("\tUser mode\n");
break;
case 0x10: /* P=1, W=0 -> base not updated */
- src_addr = GET_REG(rn, ctx);
+ src_addr = (unsigned8 *)GET_REG(rn, ctx);
if (GET_U(insn) == 0) {
src_addr -= GET_OFFSET(insn);
} else {