From b1c7737d0eec5b829b3ed47586dc9667bc5a366f Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 1 Nov 2023 15:35:26 -0400 Subject: [PATCH] main: disable interrupts on BSP entry this prevents boot failure due to unallocated memory being written to during early boot --- init/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/init/main.c b/init/main.c index e623eaa..855bdf7 100644 --- a/init/main.c +++ b/init/main.c @@ -108,6 +108,7 @@ char *kcmdline_get_symbol(const char *sym) void kmain(void) { + cli(); hhdm_start = hhdm_req.response->offset; data_end = (uintptr_t)(&__data_end); bss_start = (uintptr_t)(&__bss_start);