diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-10-14 08:39:43 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-10-14 08:41:41 +0200 |
commit | d5262fcbc8647dff9456bb93053036d0ddd5b43a (patch) | |
tree | 7f282214e5be0eca623fd69f27bfbb3265501677 /c/src/lib/libcpu/powerpc/new-exceptions | |
parent | bsps/mpc55xx: Fix MPC5674F memory map (diff) | |
download | rtems-d5262fcbc8647dff9456bb93053036d0ddd5b43a.tar.bz2 |
bsps/powerpc: Fix the warning fix
Diffstat (limited to 'c/src/lib/libcpu/powerpc/new-exceptions')
-rw-r--r-- | c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_alignment.c | 6 |
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 4879966c9d..732ff96b18 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 @@ -25,9 +25,9 @@ int ppc_exc_alignment_handler(BSP_Exception_frame *frame, unsigned excNum) unsigned a = (opcode >> 16) & 0x1f; unsigned b = (opcode >> 11) & 0x1f; PPC_GPR_TYPE *regs = &frame->GPR0; - PPC_GPR_TYPE *current = (PPC_GPR_TYPE *) - (((a == 0 ? 0 : regs [a]) + regs [b]) & (clsz - 1)); - PPC_GPR_TYPE *end = current + clsz / sizeof(PPC_GPR_TYPE); + unsigned *current = (unsigned *) + (((a == 0 ? 0 : (unsigned) regs[a]) + (unsigned) regs[b]) & (clsz - 1)); + unsigned *end = current + clsz / sizeof(*current); while (current != end) { *current = 0; |