Files
tinygo/compiler
Ayke van Laethem 3a2188fc7b runtime/interrupt: add Checkpoint type
This type can be used to jump back to a previous position in a program
from inside an interrupt. This is useful for baremetal systems that
implement wfi but not wfe, and therefore have no easy (race-free) way to
wait until a flag gets changed inside an interrupt. This is an issue on
RISC-V, where this is racy (the interrupt might happen after the check
but before the wfi instruction):

    configureInterrupt()
    for flag.Load() != 0 {
        riscv.Asm("wfi")
    }
2025-06-12 21:04:36 +02:00
..
2025-01-20 06:15:33 +01:00
2025-02-25 14:41:42 +01:00
2025-04-22 17:45:29 +02:00
2021-09-27 15:47:12 +02:00
2023-10-01 18:32:15 +02:00
2024-05-24 19:12:26 +02:00
2025-04-22 17:45:29 +02:00
2025-04-22 17:45:29 +02:00