summaryrefslogtreecommitdiff
path: root/kernel/entry_efi.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-03-17 12:38:27 +0000
committerAda Christine <adachristine18@gmail.com>2021-03-17 12:38:27 +0000
commit53ca88735db910c746d6190cca39fcd70d66b650 (patch)
treeab0da3a88009f0ddf0e6e2634d0962c364393203 /kernel/entry_efi.c
initial commit
Diffstat (limited to 'kernel/entry_efi.c')
-rw-r--r--kernel/entry_efi.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/kernel/entry_efi.c b/kernel/entry_efi.c
new file mode 100644
index 0000000..1acd399
--- /dev/null
+++ b/kernel/entry_efi.c
@@ -0,0 +1,14 @@
+#include <stdbool.h>
+#include <stdnoreturn.h>
+
+#include <boot/entry/entry_efi.h>
+
+static const char kernel_entry_data[4096];
+
+noreturn void kernel_entry(struct efi_boot_data *data)
+{
+ (void)data;
+ __asm__ ("cli\n\t");
+ while (true) __asm__ ("hlt\n\t");
+}
+