mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
fix(rp2): use side-effect-free spinlocks
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user