When debug is enabled at boot, enable logtoserial=3
This commit is contained in:
parent
96e3db9089
commit
51121d00fb
@ -389,9 +389,17 @@ int kmain() {
|
||||
} while (1);
|
||||
|
||||
if (boot_mode == 0) {
|
||||
multiboot_header.cmdline = (uintptr_t)"vid=auto,1024,768 root=/dev/ram0,nocache start=--migrate _start=session";
|
||||
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) {
|
||||
multiboot_header.cmdline = (uintptr_t)"root=/dev/ram0,nocache start=--migrate _start=--vga";
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user