summaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-19 16:36:51 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-19 16:37:54 -0400
commit472ec944d2ed81d0304cc6cac80946a6a44776be (patch)
treef6cae641c143a0b45bb289d9d9fc6145706025b0 /kernel/main.c
parentset mmap limit (diff)
downloadcomus-472ec944d2ed81d0304cc6cac80946a6a44776be.tar.gz
comus-472ec944d2ed81d0304cc6cac80946a6a44776be.tar.bz2
comus-472ec944d2ed81d0304cc6cac80946a6a44776be.zip
UEFI and republicans
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c
index 7ea47ad..8666511 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -1,6 +1,7 @@
#include <comus/cpu.h>
#include <comus/memory.h>
#include <comus/mboot.h>
+#include <comus/efi.h>
#include <comus/drivers.h>
#include <comus/drivers/acpi.h>
#include <comus/drivers/pci.h>
@@ -25,6 +26,9 @@ void main(long magic, volatile void *mboot)
// load multiboot information
mboot_init(magic, mboot);
+ // load efi structures
+ efi_init(mboot_get_efi_hdl(), mboot_get_efi_st());
+
// initalize memory
memory_init();