Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm: handle unaligned addresses in Cortex-M cache ops

For commit-type operations it's useful to be able to pass
unaligned addresses, so round the address/size to ensure
all cache lines in the address range are hit.

Change-Id: Ibb23050ecf11b6ef6ab1dd517990a68ef62ecfa9

+4 -2
+4 -2
firmware/target/arm/cpucache-armv7m.c
··· 19 19 * 20 20 ****************************************************************************/ 21 21 #include "cpucache-armv7m.h" 22 + #include "system.h" 22 23 #include "regs/cortex-m/cm_cache.h" 23 24 24 25 /* ··· 56 57 { 57 58 arm_dsb(); 58 59 59 - uint32_t addr = (uint32_t)base; 60 - uint32_t endaddr = addr + size; 60 + uint32_t base_addr = (uint32_t)base; 61 + uint32_t addr = CACHEALIGN_DOWN(base_addr); 62 + uint32_t endaddr = CACHEALIGN_UP(base_addr + size); 61 63 62 64 while (addr < endaddr) 63 65 {