mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Kernel Commandline: Change no_vmmouse boot argument to be vmmouse
Instead of having no_vmmouse, the boot argument now is vmmouse='on|off'.
This commit is contained in:
parent
b5857ceaad
commit
8a41256497
1 changed files with 20 additions and 3 deletions
|
@ -75,6 +75,7 @@
|
|||
[[noreturn]] static void init_stage2();
|
||||
static void setup_serial_debug();
|
||||
static void setup_acpi();
|
||||
static void setup_vmmouse();
|
||||
|
||||
VirtualConsole* tty0;
|
||||
|
||||
|
@ -123,9 +124,7 @@ extern "C" [[noreturn]] void init()
|
|||
|
||||
new KeyboardDevice;
|
||||
new PS2MouseDevice;
|
||||
VMWareBackdoor::initialize();
|
||||
if (!KParams::the().has("no_vmmouse"))
|
||||
VMWareBackdoor::the().enable_absolute_vmmouse();
|
||||
setup_vmmouse();
|
||||
|
||||
new SB16;
|
||||
new NullDevice;
|
||||
|
@ -420,3 +419,21 @@ void setup_acpi()
|
|||
kprintf("acpi boot argmuent has an invalid value.\n");
|
||||
hang();
|
||||
}
|
||||
|
||||
void setup_vmmouse()
|
||||
{
|
||||
VMWareBackdoor::initialize();
|
||||
if (!KParams::the().has("vmmouse")) {
|
||||
VMWareBackdoor::the().enable_absolute_vmmouse();
|
||||
return;
|
||||
}
|
||||
auto vmmouse = KParams::the().get("vmmouse");
|
||||
if (vmmouse == "off")
|
||||
return;
|
||||
if (vmmouse == "on") {
|
||||
VMWareBackdoor::the().enable_absolute_vmmouse();
|
||||
return;
|
||||
}
|
||||
kprintf("vmmouse boot argmuent has an invalid value.\n");
|
||||
hang();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue