mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
8f9419a35d
Most tests don't pass yet, so can't add this test to the standard tests, yet.
17 lines
290 B
Go
17 lines
290 B
Go
// +build fe310,qemu
|
|
|
|
package runtime
|
|
|
|
import (
|
|
"runtime/volatile"
|
|
"unsafe"
|
|
)
|
|
|
|
// Special memory-mapped device to exit tests, created by SiFive.
|
|
var testExit = (*volatile.Register32)(unsafe.Pointer(uintptr(0x100000)))
|
|
|
|
func abort() {
|
|
// Signal a successful exit.
|
|
testExit.Set(0x5555)
|
|
}
|