mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 10:45:09 +00:00
Kernel/CommandLine: Add option to disable physical networking hardware
This is useful for debugging sessions mostly.
This commit is contained in:
parent
1c94b5e8eb
commit
2e2201e8e1
3 changed files with 15 additions and 7 deletions
|
@ -154,6 +154,11 @@ UNMAP_AFTER_INIT HPETMode CommandLine::hpet_mode() const
|
|||
PANIC("Unknown HPETMode: {}", hpet_mode);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::is_physical_networking_disabled() const
|
||||
{
|
||||
return contains("disable_physical_networking"sv);
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT bool CommandLine::disable_ps2_controller() const
|
||||
{
|
||||
return contains("disable_ps2_controller"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue