1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

Kernel: Store the kernel command line in a StringView

The Raspberry Pi's mailbox interface does not guarantee that the
returned command line is null-terminated. This commit removes that
assumption from the current code, allowing the next commit to add
support for reading it on the Pi.

This also lets us eliminate a few manual `strlen()` calls :^)
This commit is contained in:
Daniel Bertalan 2023-04-24 20:14:44 +02:00 committed by Andreas Kling
parent c911fb0150
commit 6aa392f6e4
4 changed files with 10 additions and 14 deletions

View file

@ -52,7 +52,7 @@ enum class AHCIResetMode {
class CommandLine {
public:
static void early_initialize(char const* cmd_line);
static void early_initialize(StringView cmd_line);
static void initialize();
static bool was_initialized();