1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

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
parent a5699a141d
commit 62f69cc50f
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();