summaryrefslogtreecommitdiff
path: root/include/gdt.h
blob: 8b239dd1f6c19a9882c90a8f0a7e3efd5a9bf43c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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