mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
26 lines
588 B
Go
26 lines
588 B
Go
// +build scheduler.none
|
|
|
|
package runtime
|
|
|
|
//go:linkname sleep time.Sleep
|
|
func sleep(duration int64) {
|
|
sleepTicks(nanosecondsToTicks(duration))
|
|
}
|
|
|
|
// getSystemStackPointer returns the current stack pointer of the system stack.
|
|
// This is always the current stack pointer.
|
|
func getSystemStackPointer() uintptr {
|
|
return getCurrentStackPointer()
|
|
}
|
|
|
|
// run is called by the program entry point to execute the go program.
|
|
// With the "none" scheduler, init and the main function are invoked directly.
|
|
func run() {
|
|
initHeap()
|
|
initAll()
|
|
postinit()
|
|
callMain()
|
|
}
|
|
|
|
const hasScheduler = false
|