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
This commit is contained in:
Aidan MacDonald 2026-02-05 10:04:27 +00:00 committed by Solomon Peachy
parent 7b91b81e49
commit bce2c4e069
4 changed files with 4 additions and 4 deletions

View file

@ -799,7 +799,7 @@ static inline bool fft_get_fft(void)
#if NUM_CORES > 1
/* use a worker thread if there is another processor core */
static volatile bool fft_thread_run SHAREDDATA_ATTR = false;
static volatile bool fft_thread_run SHAREDBSS_ATTR;
static unsigned long fft_thread = 0;
static long fft_thread_stack[CACHEALIGN_UP(DEFAULT_STACK_SIZE*4/sizeof(long))]

View file

@ -97,7 +97,7 @@ static const char voice_thread_name[] = "voice";
/* Voice thread synchronization objects */
static struct event_queue voice_queue SHAREDBSS_ATTR;
static struct queue_sender_list voice_queue_sender_list SHAREDBSS_ATTR;
static int quiet_counter SHAREDDATA_ATTR = 0;
static int quiet_counter SHAREDBSS_ATTR;
static bool voice_playing = false;
#define VOICE_PCM_FRAME_COUNT ((PLAY_SAMPR_MAX*VOICE_FRAME_COUNT + \

View file

@ -199,7 +199,7 @@ static int lcd_sleep_timeout = 10*HZ;
#define lcd_sleep_timeout LCD_SLEEP_TIMEOUT
#endif
static int lcd_sleep_timer SHAREDDATA_ATTR = 0;
static int lcd_sleep_timer SHAREDBSS_ATTR;
static void backlight_lcd_sleep_countdown(bool start)
{

View file

@ -34,7 +34,7 @@ void (*tick_funcs[MAX_NUM_TICK_TASKS+1])(void);
#if !defined(CPU_PP) || !defined(BOOTLOADER) || \
defined(HAVE_BOOTLOADER_USB_MODE)
volatile long current_tick SHAREDDATA_ATTR = 0;
volatile long current_tick SHAREDBSS_ATTR;
#endif
/* - Timer initialization and interrupt handler is defined at