mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-15 00:13:43 +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.
|
// These spinlocks are needed by the runtime.
|
||||||
var (
|
var (
|
||||||
printLock = spinLock{id: 0}
|
printLock = spinLock{id: 20}
|
||||||
schedulerLock = spinLock{id: 1}
|
schedulerLock = spinLock{id: 21}
|
||||||
atomicsLock = spinLock{id: 2}
|
atomicsLock = spinLock{id: 22}
|
||||||
futexLock = spinLock{id: 3}
|
futexLock = spinLock{id: 23}
|
||||||
)
|
)
|
||||||
|
|
||||||
// A hardware spinlock, one of the 32 spinlocks defined in the SIO peripheral.
|
// A hardware spinlock, one of the 32 spinlocks defined in the SIO peripheral.
|
||||||
|
|||||||
Reference in New Issue
Block a user