Kernel: Add command line option readonly

This prevents calls to write_sectors_impl and all dirty pages are always
kept in RAM.
This commit is contained in:
2024-11-27 13:31:55 +02:00
parent f985673dc3
commit 8dbbbc1a1a
5 changed files with 16 additions and 0 deletions

View File

@@ -85,6 +85,8 @@ static void parse_command_line()
cmdline.disable_usb = true;
else if (argument == "noacpi")
cmdline.disable_acpi = true;
else if (argument == "readonly")
Kernel::g_disable_disk_write = true;
else if (argument == "nodebug")
g_disable_debug = true;
else if (argument.starts_with("ps2="))