summaryrefslogtreecommitdiff
path: root/src/arch/x86_common/include/mboot.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-02-04 14:19:54 -0500
committerFreya Murphy <freya@freyacat.org>2024-02-04 14:19:54 -0500
commit1b09896afcf562d199d4df8d671601bba2b1f081 (patch)
treeb4ee4ae8e6e1ff5c5b27fe97509752b17fae330b /src/arch/x86_common/include/mboot.h
parentfix acpi on uefi, kprint fixes (diff)
downloadcorn-1b09896afcf562d199d4df8d671601bba2b1f081.tar.gz
corn-1b09896afcf562d199d4df8d671601bba2b1f081.tar.bz2
corn-1b09896afcf562d199d4df8d671601bba2b1f081.zip
refactor archHEADmain
Diffstat (limited to 'src/arch/x86_common/include/mboot.h')
-rw-r--r--src/arch/x86_common/include/mboot.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/x86_common/include/mboot.h b/src/arch/x86_common/include/mboot.h
new file mode 100644
index 0000000..d1ca1a0
--- /dev/null
+++ b/src/arch/x86_common/include/mboot.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <shim.h>
+#include <memory.h>
+
+/**
+ * Loads the multi boot information
+ * @param mboot_info - the pointer passed from multiboot2
+ * @param shim_info - the info to be collected by shim
+ */
+void mboot_load_info(long mboot_magic, const volatile void *mboot_data_ptr, volatile struct boot_info *shim_info);