[rtems commit] bsps/powerpc: Fix the warning fix
Sebastian Huber
sebh at rtems.org
Tue Oct 14 06:36:02 UTC 2014
Module: rtems
Branch: master
Commit: d5262fcbc8647dff9456bb93053036d0ddd5b43a
Changeset: http://git.rtems.org/rtems/commit/?id=d5262fcbc8647dff9456bb93053036d0ddd5b43a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Oct 14 08:39:43 2014 +0200
bsps/powerpc: Fix the warning fix
---
.../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 4879966..732ff96 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;
More information about the vc
mailing list