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:
parent
51e9fdebea
commit
79d3910145
Notes:
sideshowbarker
2024-07-18 17:55:42 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/79d3910145e Pull-request: https://github.com/SerenityOS/serenity/pull/7217
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue