Skip to content

Commit 38de127

Browse files
committed
Restore use of non-zero magic number
1 parent d928e45 commit 38de127

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rp2_common/pico_multicore/multicore.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,10 @@ void multicore_launch_core1_raw(void (*entry)(void), uint32_t *sp, uint32_t vect
202202
irq_set_enabled(irq_num, enabled);
203203
}
204204

205+
// A non-zero initialisation value is used in order to reduce the chance of
206+
// entering the lock handler on bootup due to a 0-word being present in the FIFO
207+
static volatile uint32_t lockout_request_id = 0x73a8831eu;
205208
static mutex_t lockout_mutex;
206-
static volatile uint32_t lockout_request_id = 0;
207209

208210
// note this method is in RAM because lockout is used when writing to flash
209211
// it only makes inline calls

0 commit comments

Comments
 (0)