You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
If there is DEBUG output during PCI enumeration, it could cause SBL hang due to invalid PCI bar resource. In this case, SBL will force to return 0 for any serial port register read. And it might cause dead loop because of LSR_TXRDY bit polling in SerialPortWrite(). To avoid this potential dead loop, it is required to set LSR_TXRDY bit for LSR_OFFSET register read if the PCI resource is invalid. Signed-off-by: Maurice Ma <maurice.ma@intel.com>