Add: GDT, entry initializing for code and data segments

This commit is contained in:
xamidev
2024-07-14 10:22:42 +02:00
parent 2b05b8b74f
commit 007018790a
9 changed files with 80 additions and 2 deletions

8
gdt.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef GDT_H
#define GDT_H
void gdt_set_gate(int num, unsigned long base, unsigned long limit, unsigned char access, unsigned char gran);
void gdt_install();
#endif