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

Kernel: Add support for vmmouse

We add this feature together with the VMWareBackdoor class.
VMWareBackdoor class is responsible for enabling the vmmouse, and then
controlling it from the PS2 mouse IRQ handler.
This commit is contained in:
Liav A 2020-02-04 03:00:50 +02:00 committed by Andreas Kling
parent 44ddfd2bf5
commit 47978a5828
8 changed files with 328 additions and 3 deletions

View file

@ -55,6 +55,7 @@
#include <Kernel/Devices/RandomDevice.h>
#include <Kernel/Devices/SB16.h>
#include <Kernel/Devices/SerialDevice.h>
#include <Kernel/Devices/VMWareBackdoor.h>
#include <Kernel/Devices/ZeroDevice.h>
#include <Kernel/FileSystem/Ext2FileSystem.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
@ -122,6 +123,10 @@ extern "C" [[noreturn]] void init()
new KeyboardDevice;
new PS2MouseDevice;
VMWareBackdoor::initialize();
if (!KParams::the().has("no_vmmouse"))
VMWareBackdoor::the().enable_absolute_vmmouse();
new SB16;
new NullDevice;
if (!get_serial_debug())