From 7590d01d91659b3805ee1f014c37d48bf6d0c296 Mon Sep 17 00:00:00 2001 From: Matheus Date: Fri, 22 Jul 2022 18:27:03 -0300 Subject: [PATCH] remove some warnings gcc was rightfully complaining about a lack of functio ndefinitions related to initialising the bsp's idt and gdt --- src/arch/x86_64/include/arch/gdt.h | 2 ++ src/arch/x86_64/main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/arch/x86_64/include/arch/gdt.h b/src/arch/x86_64/include/arch/gdt.h index 1e0a5cb1..fb03ccb8 100644 --- a/src/arch/x86_64/include/arch/gdt.h +++ b/src/arch/x86_64/include/arch/gdt.h @@ -56,4 +56,6 @@ typedef struct{ sys64 ist; } gdt_t; +void gdt_bspinit(); + #endif diff --git a/src/arch/x86_64/main.c b/src/arch/x86_64/main.c index 2af876bd..b9dada20 100644 --- a/src/arch/x86_64/main.c +++ b/src/arch/x86_64/main.c @@ -1,5 +1,7 @@ #include #include +#include +#include #include static volatile struct limine_terminal_request liminettyr = {