mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
Kernel: Allow "serial_debug" everywhere on the command line
This commit is contained in:
parent
d56240759f
commit
8941d831bb
Notes:
sideshowbarker
2024-07-18 22:55:09 +09:00
Author: https://github.com/boricj
Commit: 8941d831bb
Pull-request: https://github.com/SerenityOS/serenity/pull/5070
1 changed files with 1 additions and 3 deletions
|
@ -307,10 +307,8 @@ void setup_serial_debug()
|
||||||
// serial_debug will output all the klog() and dbgln() data to COM1 at
|
// serial_debug will output all the klog() and dbgln() data to COM1 at
|
||||||
// 8-N-1 57600 baud. this is particularly useful for debugging the boot
|
// 8-N-1 57600 baud. this is particularly useful for debugging the boot
|
||||||
// process on live hardware.
|
// process on live hardware.
|
||||||
//
|
|
||||||
// note: it must be the first option in the boot cmdline.
|
|
||||||
u32 cmdline = low_physical_to_virtual(multiboot_info_ptr->cmdline);
|
u32 cmdline = low_physical_to_virtual(multiboot_info_ptr->cmdline);
|
||||||
if (cmdline && StringView(reinterpret_cast<const char*>(cmdline)).starts_with("serial_debug"))
|
if (cmdline && StringView(reinterpret_cast<const char*>(cmdline)).contains("serial_debug"))
|
||||||
set_serial_debug(true);
|
set_serial_debug(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue