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
+4 -8
View File
@@ -30,20 +30,16 @@ var _sidata [0]byte
//go:extern _edata
var _edata [0]byte
func postinit() {}
// Entry point for Go. Initialize all packages and call main.main().
//go:export main
func main() {
// Initialize .data and .bss sections.
preinit()
// Run initializers of all packages.
initAll()
// Compiler-generated call to main.main().
go callMain()
// Run the scheduler.
scheduler()
// Run program.
run()
}
func preinit() {