From 9e7effcc7f66947e38ceca67538713e998b1d40c Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 9 Oct 2019 01:42:03 -0700 Subject: [PATCH] basic structure for gdt things --- gdt.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gdt.h diff --git a/gdt.h b/gdt.h new file mode 100644 index 0000000..0b23c66 --- /dev/null +++ b/gdt.h @@ -0,0 +1,16 @@ +#include "gdt.h" +#include "types.h" + + +struct example { + int a; + int b; +}; + +struct GDT { + u32 address; + u16 size; +}__attribute__((packed)); + +static void load_gdt(const GDT* table); +