[rtems commit] bsps/powerpc: Fix warning

Sebastian Huber sebh at rtems.org
Fri Oct 10 07:37:02 UTC 2014


Module:    rtems
Branch:    master
Commit:    aee5d63d23894b0b04704a2e764c856a64e40473
Changeset: http://git.rtems.org/rtems/commit/?id=aee5d63d23894b0b04704a2e764c856a64e40473

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct 10 09:21:29 2014 +0200

bsps/powerpc: Fix warning

---

 .../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 3be8031..4879966 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;



More information about the vc mailing list