Kernel: Use IOAddress instead of direct IO calls in SerialDevice

This commit is contained in:
Idan Horowitz 2021-05-15 13:51:13 +03:00 committed by Andreas Kling
commit 62f69cc50f
Notes: sideshowbarker 2024-07-18 17:57:05 +09:00
3 changed files with 21 additions and 20 deletions

View file

@ -157,10 +157,10 @@ extern "C" UNMAP_AFTER_INIT [[noreturn]] void init()
NullDevice::initialize();
if (!get_serial_debug())
new SerialDevice(SERIAL_COM1_ADDR, 64);
new SerialDevice(SERIAL_COM2_ADDR, 65);
new SerialDevice(SERIAL_COM3_ADDR, 66);
new SerialDevice(SERIAL_COM4_ADDR, 67);
new SerialDevice(IOAddress(SERIAL_COM1_ADDR), 64);
new SerialDevice(IOAddress(SERIAL_COM2_ADDR), 65);
new SerialDevice(IOAddress(SERIAL_COM3_ADDR), 66);
new SerialDevice(IOAddress(SERIAL_COM4_ADDR), 67);
VMWareBackdoor::the(); // don't wait until first mouse packet
HIDManagement::initialize();