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 -8
View File
@@ -45,17 +45,12 @@ type timespec struct {
const CLOCK_MONOTONIC_RAW = 4
func postinit() {}
// Entry point for Go. Initialize all packages and call main.main().
//go:export main
func main() int {
// Run initializers of all packages.
initAll()
// Compiler-generated call to main.main().
go callMain()
// Run scheduler.
scheduler()
run()
// For libc compatibility.
return 0