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.

ata: Ensure that the bounce buffer is minimum 32-bit aligned

Basically, if STORAGE_ALIGN_ATTR isn't defined, define it to be
sizeof(uint32_t) in the ATA code.

Change-Id: I13de61788cb71e3e8d3a956ab5f2e251471ce76d

+9 -3
+4
firmware/drivers/ata-common.c
··· 28 28 #define __MAX_VARIABLE_LOG_SECTOR SECTOR_SIZE 29 29 #endif 30 30 31 + #ifndef STORAGE_ALIGN_ATTR 32 + #define STORAGE_ALIGN_ATTR __attribute__((aligned(sizeof(uint32_t)))) 33 + #endif 34 + 31 35 struct sector_cache_entry { 32 36 unsigned char data[MAX_PHYS_SECTOR_SIZE]; 33 37 sector_t sectornum; /* logical sector */
-3
firmware/export/config/ipod6g.h
··· 203 203 /* define this if we want to support 512n and 4Kn drives */ 204 204 //#define MAX_VARIABLE_LOG_SECTOR 4096 205 205 206 - //#define STORAGE_NEEDS_BOUNCE_BUFFER 207 - #define STORAGE_WANTS_ALIGN 208 - 209 206 #define HAVE_HARDWARE_CLICK 210 207 211 208 /* Define this if you have adjustable CPU frequency */
+5
firmware/export/system.h
··· 335 335 #define MEM_ALIGN_DOWN(x) \ 336 336 ((typeof (x))ALIGN_DOWN((uintptr_t)(x), MEM_ALIGN_SIZE)) 337 337 338 + /* Bounce buffers may have alignment requirments */ 339 + #if defined(MAX_PHYS_SECTOR_SIZE) && !defined(STORAGE_WANTS_ALIGN) 340 + #define STORAGE_WANTS_ALIGN 341 + #endif 342 + 338 343 #ifdef STORAGE_WANTS_ALIGN 339 344 #define STORAGE_ALIGN_ATTR __attribute__((aligned(CACHEALIGN_SIZE))) 340 345 #define STORAGE_ALIGN_DOWN(x) \