mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
generalize -scheduler=none to support most platforms
This commit is contained in:
@@ -31,6 +31,8 @@ var _sidata [0]byte
|
||||
//go:extern _edata
|
||||
var _edata [0]byte
|
||||
|
||||
func postinit() {}
|
||||
|
||||
//go:export main
|
||||
func main() {
|
||||
// Zero the PLIC enable bits on startup: they are not zeroed at reset.
|
||||
@@ -51,9 +53,7 @@ func main() {
|
||||
|
||||
preinit()
|
||||
initPeripherals()
|
||||
initAll()
|
||||
go callMain()
|
||||
scheduler()
|
||||
run()
|
||||
abort()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user