more UBsan
This commit is contained in:
+2
-9
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user