mirror of
https://github.com/bdnugget/eggos.git
synced 2026-11-07 04:17:27 +00:00
19 lines
323 B
Go
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
|
|
}
|