summaryrefslogtreecommitdiff
path: root/Kernel/CommandLine.h
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-01-21 11:36:32 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-21 19:34:10 +0200
commitd67c70d0435c34a38bb03bc3225c765d81b7136d (patch)
tree08a24538e731ce6c322814f84a721a03facd3f5d /Kernel/CommandLine.h
parent0adee378fd0486134bc059cd197ddf2d408328f4 (diff)
downloadserenity-d67c70d0435c34a38bb03bc3225c765d81b7136d.zip
Kernel: Ensure that CommandLine is initialized before choosing PanicMode
If the kernel commandline is not initialized, just halt everything.
Diffstat (limited to 'Kernel/CommandLine.h')
-rw-r--r--Kernel/CommandLine.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/CommandLine.h b/Kernel/CommandLine.h
index a007fdab36..f28b97a0de 100644
--- a/Kernel/CommandLine.h
+++ b/Kernel/CommandLine.h
@@ -45,6 +45,7 @@ class CommandLine {
public:
static void early_initialize(const char* cmd_line);
static void initialize();
+ static bool was_initialized();
enum class Validate {
Yes,