[PATCH 55/62] libcpu/powerpc/mpc55xx/misc/flash_support.c: Fix warnings
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Oct 15 20:00:45 UTC 2014
---
c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
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. */
--
1.9.3
More information about the devel
mailing list