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
commit 47978a5828
Notes: sideshowbarker 2024-07-19 09:40:10 +09:00
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())