From 30d6e8f850d2fe26fffdeef0c38fc627ef8bab9a Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Wed, 13 Dec 2023 13:24:48 +0100 Subject: initial commit currently with: booted via multiboot 1 protected mode to long mode boostrap code vga used for outputting gdt and idt set up identity paging for the whole memory reported by multiboot pic and ps/2 set up acpi code exists but is broken --- include/gdt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 include/gdt.h (limited to 'include/gdt.h') diff --git a/include/gdt.h b/include/gdt.h new file mode 100644 index 0000000..63ff08b --- /dev/null +++ b/include/gdt.h @@ -0,0 +1,10 @@ +#ifndef _GDT_H_ +#define _GDT_H_ + +#include +#include + +void gdt_set_gate(size_t num, uint64_t base, uint32_t limit, uint8_t access, uint8_t gran); +void gdt_install(); + +#endif -- cgit v1.2.3