mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
Kernel: Use IOAddress instead of direct IO calls in SerialDevice
This commit is contained in:
parent
a5699a141d
commit
62f69cc50f
Notes:
sideshowbarker
2024-07-18 17:57:05 +09:00
Author: https://github.com/IdanHo
Commit: 62f69cc50f
Pull-request: https://github.com/SerenityOS/serenity/pull/7116
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/supercomputer7
3 changed files with 21 additions and 20 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue