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.

Some static data is only used by .init functions. Add .initdata to declare such data (otherwise section conflicts arise). For i.MX31, use INITDATA_ATTR in the appropriate places.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29008 a1c6a512-1295-4272-9138-f99709370657

+5 -6
+2
firmware/export/config.h
··· 835 835 * from crashes to freezes to exploding daps. 836 836 */ 837 837 #define INIT_ATTR __attribute__ ((section(".init"))) 838 + #define INITDATA_ATTR __attribute__ ((section(".initdata"))) 838 839 #define HAVE_INIT_ATTR 839 840 #else 840 841 #define INIT_ATTR 842 + #define INITDATA_ATTR 841 843 #endif 842 844 843 845 #if (CONFIG_PLATFORM & PLATFORM_HOSTED) && defined(__APPLE__)
+1 -1
firmware/target/arm/imx31/app.lds
··· 111 111 . = ALIGN(4); 112 112 _initstart = .; 113 113 *(.init) 114 - *(.sdmacode) 114 + *(.initdata) 115 115 _initend = .; 116 116 } > INIT AT> DRAM 117 117
-3
firmware/target/arm/imx31/boot.lds
··· 53 53 *(.irodata) 54 54 *(.idata) 55 55 *(.data*) 56 - . = ALIGN(0x4); 57 - *(.sdmacode) 58 - . = ALIGN(0x4); 59 56 _dataend = . ; 60 57 } > DRAM 61 58
+1 -1
firmware/target/arm/imx31/gigabeat-s/system-gigabeat-s.c
··· 139 139 140 140 void INIT_ATTR system_init(void) 141 141 { 142 - static const int disable_clocks[] = 142 + static const enum IMX31_CG_LIST disable_clocks[] INITDATA_ATTR = 143 143 { 144 144 /* CGR0 */ 145 145 CG_SD_MMC1,
+1 -1
firmware/target/arm/imx31/sdma_script_code.h
··· 294 294 /*! 295 295 * Code download 296 296 */ 297 - static __attribute__((aligned(4), section(".sdmacode"))) 297 + static __attribute__((aligned(4))) INITDATA_ATTR 298 298 const short sdma_code_2[RAM_CODE_SIZE_2] = 299 299 { 300 300 0x0870, 0x0011, 0x5010, 0xc0ec, 0x7d61, 0x5ac0, 0x5bc8, 0x5ef8,