From a2a4a155c259d24101435771607b81f167b62cf3 Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 20 Feb 2021 23:24:25 -0700 Subject: Changed to nasm --- include/gdt.h | 17 +++++++++++++++++ 1 file changed, 17 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..8b239dd --- /dev/null +++ b/include/gdt.h @@ -0,0 +1,17 @@ +#ifndef GDT_H +#define GDT_H + +#include "types.h" + +struct GDT { + uint32_t limit; + uint32_t base; + uint8_t type; +} __attribute((packed)); + +struct GDT_ptr { + uint16_t limit; + uint32_t base; +} __attribute((packed)); + +#endif //GDT_H -- cgit v1.2.3-70-g09d2