When debug is enabled at boot, enable logtoserial=3

This commit is contained in:
K. Lange 2018-04-21 20:14:26 +09:00 committed by Kevin Lange
parent 96e3db9089
commit 51121d00fb

View File

@ -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";