From b0e5d02c9acfd5d3f9980712cf573d9a7e1a81bb Mon Sep 17 00:00:00 2001 From: apio Date: Sun, 8 Jan 2023 15:32:59 +0100 Subject: [PATCH] kernel: Turn off console logging before starting the init process --- kernel/src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/src/main.cpp b/kernel/src/main.cpp index f9ba6a30..a70938cd 100644 --- a/kernel/src/main.cpp +++ b/kernel/src/main.cpp @@ -71,6 +71,9 @@ Result init() CPU::platform_finish_init(); + // Disable console logging before transferring control to userspace. + setup_log(log_debug_enabled(), log_serial_enabled(), false); + CPU::enable_interrupts(); return {};