Kernel: Stop overriding built-in serial port with PCI serial port

On a second thought, theres nothing stopping us from allowing poeple to
use both if they want to :^)
This commit is contained in:
Idan Horowitz 2021-05-17 21:14:22 +03:00 committed by Linus Groh
parent 51e9fdebea
commit 79d3910145
Notes: sideshowbarker 2024-07-18 17:55:42 +09:00

View file

@ -26,7 +26,7 @@ void PCISerialDevice::detect()
auto bar_base = PCI::get_BAR(address, board_definition.pci_bar) & ~1;
// FIXME: We should support more than 1 PCI serial port (per card/multiple devices)
s_the = new SerialDevice(IOAddress(bar_base + board_definition.first_offset), 64);
s_the = new SerialDevice(IOAddress(bar_base + board_definition.first_offset), 68);
if (board_definition.baud_rate != SerialDevice::Baud::Baud38400) // non-default baud
s_the->set_baud(board_definition.baud_rate);