Initial commit
This commit is contained in:
commit
cbc51f523e
125 changed files with 34817 additions and 0 deletions
17
src/hal/gdt.h
Normal file
17
src/hal/gdt.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <stdint.h>
|
||||
|
||||
typedef struct gdt_descriptor {
|
||||
uint16_t limit_low;
|
||||
uint16_t base_low;
|
||||
uint8_t base_middle;
|
||||
uint8_t access;
|
||||
uint8_t granularity;
|
||||
uint8_t base_high;
|
||||
} __attribute((packed)) gdt_descriptor;
|
||||
|
||||
typedef struct gdt_register {
|
||||
uint16_t limit;
|
||||
uint64_t base_address;
|
||||
} __attribute((packed)) gdt_register;
|
||||
|
||||
void set_gdt(void);
|
||||
Loading…
Add table
Add a link
Reference in a new issue