When debug is enabled at boot, enable logtoserial=3
This commit is contained in:
parent
96e3db9089
commit
51121d00fb
@ -389,10 +389,18 @@ int kmain() {
|
||||
} while (1);
|
||||
|
||||
if (boot_mode == 0) {
|
||||
if (_debug) {
|
||||
multiboot_header.cmdline = (uintptr_t)"logtoserial=3 vid=auto,1024,768 root=/dev/ram0,nocache start=--migrate _start=session";
|
||||
} else {
|
||||
multiboot_header.cmdline = (uintptr_t)"vid=auto,1024,768 root=/dev/ram0,nocache start=--migrate _start=session";
|
||||
}
|
||||
} else if (boot_mode == 1) {
|
||||
if (_debug) {
|
||||
multiboot_header.cmdline = (uintptr_t)"logtoserial=3 root=/dev/ram0,nocache start=--migrate _start=--vga";
|
||||
} else {
|
||||
multiboot_header.cmdline = (uintptr_t)"root=/dev/ram0,nocache start=--migrate _start=--vga";
|
||||
}
|
||||
}
|
||||
|
||||
if (!_normal_ata) {
|
||||
modules[6] = "NONE";
|
||||
|
Loading…
Reference in New Issue
Block a user