diff options
author | Marvin Borner | 2021-05-08 19:07:20 +0200 |
---|---|---|
committer | Marvin Borner | 2021-05-08 19:07:20 +0200 |
commit | f97343c268b0fc19bf93d509a019f3d13c7af5a4 (patch) | |
tree | 10913fc737b7da8a4c28e8cd9945429b1aac8a85 /kernel/multiboot.c | |
parent | 9d53b87be6a947bff78e202be5641990b58d47a0 (diff) |
Better cmdline parsing
Diffstat (limited to 'kernel/multiboot.c')
-rw-r--r-- | kernel/multiboot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/multiboot.c b/kernel/multiboot.c index c99959c..12d2475 100644 --- a/kernel/multiboot.c +++ b/kernel/multiboot.c @@ -16,7 +16,7 @@ CLEAR static void multiboot_parse_cmdline(const char *line) if (*p == ' ') start = p + 1; - if (memcmp(start, "log", 3) == 0) { + if (memcmp(start, "log", 3) == 0 && !ALPHANUMERIC(start[3])) { serial_enable(); start += 3; } @@ -30,6 +30,8 @@ CLEAR void multiboot_init(u32 magic, u32 addr) if (info->flags & MULTIBOOT_INFO_CMDLINE) multiboot_parse_cmdline((const char *)info->cmdline); + + serial_print("Kernel was compiled at " __TIME__ " on " __DATE__ "\n"); } CLEAR u32 multiboot_vbe(void) |