[rtems commit] libcpu/powerpc/mpc55xx/misc/flash_support.c: Fix warnings

Joel Sherrill joel at rtems.org
Thu Oct 16 13:50:02 UTC 2014


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

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Oct 15 14:22:25 2014 -0500

libcpu/powerpc/mpc55xx/misc/flash_support.c: Fix warnings

---

 .../libcpu/powerpc/mpc55xx/misc/flash_support.c    |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c b/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
index 2769efe..1d94fda 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
@@ -493,7 +493,10 @@ mpc55xx_flash_copy_op(
         flash[0] = 0xffffffff;      /* Step 3: Write to any address in the flash
                                      * (the "erase interlock write)".
                                      */
-        rtems_cache_flush_multiple_data_lines(flash, sizeof(flash[0]));
+        rtems_cache_flush_multiple_data_lines(
+          RTEMS_DEVOLATILE(void *,flash),
+          sizeof(flash[0])
+        );
 
         FLASH.MCR.B.EHV = 1;         /* Step 4: Enable high V to start erase. */
         while (FLASH.MCR.B.DONE == 0) { /* Step 5: Wait until done. */



More information about the vc mailing list