summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/new-exceptions
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-10 09:21:29 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-10-10 09:45:42 +0200
commitaee5d63d23894b0b04704a2e764c856a64e40473 (patch)
treec235cb563a340978f84669fb6b7e115679216233 /c/src/lib/libcpu/powerpc/new-exceptions
parentEliminate use of /*PAGE and clean up formatting (diff)
downloadrtems-aee5d63d23894b0b04704a2e764c856a64e40473.tar.bz2
bsps/powerpc: Fix warning
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions')
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
index 3be8031c7d..4879966c9d 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c
@@ -24,10 +24,10 @@ int ppc_exc_alignment_handler(BSP_Exception_frame *frame, unsigned excNum)
unsigned clsz = rtems_cache_get_data_line_size();
unsigned a = (opcode >> 16) & 0x1f;
unsigned b = (opcode >> 11) & 0x1f;
- unsigned *regs = &frame->GPR0;
- unsigned *current = (unsigned *)
+ PPC_GPR_TYPE *regs = &frame->GPR0;
+ PPC_GPR_TYPE *current = (PPC_GPR_TYPE *)
(((a == 0 ? 0 : regs [a]) + regs [b]) & (clsz - 1));
- unsigned *end = current + clsz / 4;
+ PPC_GPR_TYPE *end = current + clsz / sizeof(PPC_GPR_TYPE);
while (current != end) {
*current = 0;