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.

Convert users of SHAREDDATA_ATTR to SHAREDBSS_ATTR

The handful of uses are only doing zero initialization
so don't need to go in the data section, they can go in
bss instead.

Change-Id: I7108ac60867aa20b4429ac0747d00109563bb3bf

authored by

Aidan MacDonald and committed by
Solomon Peachy
bce2c4e0 7b91b81e

+4 -4
+1 -1
apps/plugins/fft/fft.c
··· 799 799 800 800 #if NUM_CORES > 1 801 801 /* use a worker thread if there is another processor core */ 802 - static volatile bool fft_thread_run SHAREDDATA_ATTR = false; 802 + static volatile bool fft_thread_run SHAREDBSS_ATTR; 803 803 static unsigned long fft_thread = 0; 804 804 805 805 static long fft_thread_stack[CACHEALIGN_UP(DEFAULT_STACK_SIZE*4/sizeof(long))]
+1 -1
apps/voice_thread.c
··· 97 97 /* Voice thread synchronization objects */ 98 98 static struct event_queue voice_queue SHAREDBSS_ATTR; 99 99 static struct queue_sender_list voice_queue_sender_list SHAREDBSS_ATTR; 100 - static int quiet_counter SHAREDDATA_ATTR = 0; 100 + static int quiet_counter SHAREDBSS_ATTR; 101 101 static bool voice_playing = false; 102 102 103 103 #define VOICE_PCM_FRAME_COUNT ((PLAY_SAMPR_MAX*VOICE_FRAME_COUNT + \
+1 -1
firmware/backlight.c
··· 199 199 #define lcd_sleep_timeout LCD_SLEEP_TIMEOUT 200 200 #endif 201 201 202 - static int lcd_sleep_timer SHAREDDATA_ATTR = 0; 202 + static int lcd_sleep_timer SHAREDBSS_ATTR; 203 203 204 204 static void backlight_lcd_sleep_countdown(bool start) 205 205 {
+1 -1
firmware/kernel/tick.c
··· 34 34 35 35 #if !defined(CPU_PP) || !defined(BOOTLOADER) || \ 36 36 defined(HAVE_BOOTLOADER_USB_MODE) 37 - volatile long current_tick SHAREDDATA_ATTR = 0; 37 + volatile long current_tick SHAREDBSS_ATTR; 38 38 #endif 39 39 40 40 /* - Timer initialization and interrupt handler is defined at