[Fixed]Serial port outputs garbage after jump to higher half
Posted: Tue Nov 09, 2021 5:00 pm
Hi!
I'm working on porting my OS from GRUB/x86_32 to a custom UEFI bootloader/x86_64. This is all well and good in QEMU, but I'm now running into trouble on real hardware, and am wondering if anyone has seen similar behaviour.
I've connected a serial cable to the computer to see what my bootloader/kernel is outputting. I get valid logs from the bootloader, but as soon as it jumps to a higher half address (and exits boot services), the serial port outputs a few garbage bytes and nothing more. The monitor also appears stuck, with no visible activity after the log line indicating the jump to the kernel, but otherwise my debugging capabilities are limited outside an emulator.
I'm working on porting my OS from GRUB/x86_32 to a custom UEFI bootloader/x86_64. This is all well and good in QEMU, but I'm now running into trouble on real hardware, and am wondering if anyone has seen similar behaviour.
I've connected a serial cable to the computer to see what my bootloader/kernel is outputting. I get valid logs from the bootloader, but as soon as it jumps to a higher half address (and exits boot services), the serial port outputs a few garbage bytes and nothing more. The monitor also appears stuck, with no visible activity after the log line indicating the jump to the kernel, but otherwise my debugging capabilities are limited outside an emulator.