diff --git a/boot/cstuff.c b/boot/cstuff.c index 10020064..9e06f182 100644 --- a/boot/cstuff.c +++ b/boot/cstuff.c @@ -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) {