generalize -scheduler=none to support most platforms

This commit is contained in:
Jaden Weiss
2020-02-07 17:17:38 -05:00
committed by Ayke
parent 5089d1a5a7
commit 5d869f6042
12 changed files with 48 additions and 40 deletions
+3 -3
View File
@@ -18,11 +18,11 @@ type wasiIOVec struct {
//export fd_write
func fd_write(id uint32, iovs *wasiIOVec, iovs_len uint, nwritten *uint) (errno uint)
func postinit() {}
//export _start
func _start() {
initAll()
go callMain()
scheduler()
run()
}
// Using global variables to avoid heap allocation.