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,9 +389,17 @@ int kmain() {
} while (1); } while (1);
if (boot_mode == 0) { 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) { } 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) { if (!_normal_ata) {