summaryrefslogtreecommitdiff
path: root/src/arch/amd64/shim.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-01-29 18:20:21 -0500
committerFreya Murphy <freya@freyacat.org>2024-01-29 18:20:21 -0500
commit0d2f0d2491be3429a634f1470701bf0790f05111 (patch)
tree0c6cd737ca3a5bcda049539bb1e93322790c7634 /src/arch/amd64/shim.c
parentthings (diff)
downloadcorn-0d2f0d2491be3429a634f1470701bf0790f05111.tar.gz
corn-0d2f0d2491be3429a634f1470701bf0790f05111.tar.bz2
corn-0d2f0d2491be3429a634f1470701bf0790f05111.zip
pic
Diffstat (limited to '')
-rw-r--r--src/arch/amd64/shim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/amd64/shim.c b/src/arch/amd64/shim.c
index 5639aab..ec030db 100644
--- a/src/arch/amd64/shim.c
+++ b/src/arch/amd64/shim.c
@@ -7,12 +7,15 @@
#include "paging.h"
#include "mboot.h"
#include "idt.h"
+#include "pic.h"
+
static struct boot_info boot_info;
void* amd64_shim(void *mboot_data_ptr) {
serial_init();
paging_init();
idt_init();
+ pic_remap();
kmap_page(mboot_data_ptr, mboot_data_ptr, F_WRITEABLE);