Files
2021-07-29 20:27:27 +08:00

19 lines
323 B
Go

package kernel
import "github.com/icexin/eggos/drivers/clock"
// called when go runtime init done
func Init() {
clockTimeInit()
idleInit()
go runTrapThread()
go runSyscallThread()
bootstrapDone = true
}
func clockTimeInit() {
t := clock.ReadCmosTime()
baseUnixTime = t.Time().Unix()
clockBaseCounter = counter
}