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:
parent
44ddfd2bf5
commit
47978a5828
8 changed files with 328 additions and 3 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue