more UBsan

This commit is contained in:
2026-03-28 21:50:19 +01:00
parent 3cd38f654c
commit 65371077d9
8 changed files with 184 additions and 12 deletions
+2 -9
View File
@@ -4,8 +4,6 @@
* @license GPL-3.0-only
*/
#include "arch/x86.h"
#include "time/date.h"
#include <stdbool.h>
#include <stddef.h>
#include <limine.h>
@@ -26,6 +24,7 @@
#include <io/term/flanterm.h>
#include <io/term/flanterm_backends/fb.h>
#include <arch/x86.h>
#include <boot/boot.h>
// Limine version used
__attribute__((used, section(".limine_requests")))
@@ -98,13 +97,7 @@ void kmain()
CLEAR_INTERRUPTS;
if (!LIMINE_BASE_REVISION_SUPPORTED) hcf();
// Populate boot context
// This stays valid only if the BOOTLOADER_RECLAIMABLE regions are preserved
boot_ctx.fb = framebuffer_request.response ? framebuffer_request.response->framebuffers[0] : NULL;
boot_ctx.mmap = memmap_request.response ? memmap_request.response : NULL;
boot_ctx.hhdm = hhdm_request.response ? hhdm_request.response : NULL;
boot_ctx.kaddr = kerneladdr_request.response ? kerneladdr_request.response : NULL;
boot_ctx.bootdate = date_request.response ? date_request.response : NULL;
populate_boot_context(&boot_ctx);
term_init();
serial_init();