fix(rp2): use side-effect-free spinlocks

This commit is contained in:
Michael Smith
2025-09-16 17:50:29 -04:00
committed by Ron Evans
parent 3dce224183
commit b9387febe0
+4 -4
View File
@@ -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.