-
Notifications
You must be signed in to change notification settings - Fork 115
/
eggos.go
39 lines (33 loc) · 759 Bytes
/
eggos.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package eggos
import (
"runtime"
"github.com/icexin/eggos/console"
"github.com/icexin/eggos/drivers/cga/fbcga"
_ "github.com/icexin/eggos/drivers/e1000"
"github.com/icexin/eggos/drivers/kbd"
"github.com/icexin/eggos/drivers/pci"
"github.com/icexin/eggos/drivers/ps2/mouse"
"github.com/icexin/eggos/drivers/uart"
"github.com/icexin/eggos/drivers/vbe"
"github.com/icexin/eggos/fs"
"github.com/icexin/eggos/inet"
"github.com/icexin/eggos/kernel"
)
func kernelInit() {
// trap and syscall threads use two Ps,
// and the remainings are for other goroutines
runtime.GOMAXPROCS(6)
kernel.Init()
uart.Init()
kbd.Init()
mouse.Init()
console.Init()
fs.Init()
vbe.Init()
fbcga.Init()
pci.Init()
inet.Init()
}
func init() {
kernelInit()
}