kernel/boot: #ec/console (from kernel args) defines the console to start
This commit is contained in:
parent
19bf511603
commit
1f59502bf5
@ -55,9 +55,14 @@ boot(int argc, char *argv[])
|
||||
/*
|
||||
* start /dev/cons
|
||||
*/
|
||||
if(startconsole() < 0)
|
||||
if(readfile("#ec/console", buf, sizeof(cputype)) >= 0
|
||||
&& strcmp("comconsole", buf) == 0){
|
||||
if(startcomconsole() < 0)
|
||||
fatal("no console found");
|
||||
} else if(startconsole() < 0){
|
||||
if(startcomconsole() < 0)
|
||||
fatal("no console found");
|
||||
}
|
||||
|
||||
/*
|
||||
* init will reinitialize its namespace.
|
||||
|
@ -32,6 +32,7 @@ cmd
|
||||
ipconfig 500 sys sys /arch/amd64/cmd/ip/ipconfig
|
||||
hmi
|
||||
screenconsole 500 sys sys /arch/amd64/cmd/hmi/screenconsole
|
||||
comconsole 500 sys sys /arch/amd64/cmd/hmi/comconsole
|
||||
usb
|
||||
usbd 500 sys sys /arch/amd64/cmd/usb/usbd
|
||||
disk 500 sys sys /arch/amd64/cmd/usb/disk
|
||||
|
Loading…
Reference in New Issue
Block a user