From b9387febe056926b8357738ea2d5b551caa371c2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 16 Sep 2025 17:50:29 -0400 Subject: [PATCH] fix(rp2): use side-effect-free spinlocks --- src/runtime/runtime_rp2.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/runtime_rp2.go b/src/runtime/runtime_rp2.go index f248ecda6..f2e81ff27 100644 --- a/src/runtime/runtime_rp2.go +++ b/src/runtime/runtime_rp2.go @@ -291,10 +291,10 @@ func coreStackTop(core uint32) uintptr { // These spinlocks are needed by the runtime. var ( - printLock = spinLock{id: 0} - schedulerLock = spinLock{id: 1} - atomicsLock = spinLock{id: 2} - futexLock = spinLock{id: 3} + printLock = spinLock{id: 20} + schedulerLock = spinLock{id: 21} + atomicsLock = spinLock{id: 22} + futexLock = spinLock{id: 23} ) // A hardware spinlock, one of the 32 spinlocks defined in the SIO peripheral.