blob: 5a3f7b24d1365c29541f7b643c4835d9c8f87984 (
plain) (
tree)
|
|
#ifndef DEF_GDT_H
#define DEF_GDT_H
#include "types.h"
struct gdt_entry {
uint16_t limit_low;
uint16_t base_low;
uint8_t base_middle;
uint8_t access;
uint8_t granularity;
uint8_t base_high;
} __attribute__((packed));
struct gdt_ptr {
uint16_t limit;
uint32_t base;
} __attribute__((packed));
void gdt_init();
#endif
|