feat(gdt): add gdt_entry struct

This commit is contained in:
aliamelo committed 2021-07-13 05:05:58 +02:00
1 parent 073d53728b
commit 15c7d24715
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
#ifndef GDT_H
#define GDT_H
#include <stdint.h>
struct gdt_entry
{
uint8_t base_3 : 8;
uint8_t granularity : 1;
uint8_t db : 1;
uint8_t l : 1;
uint8_t available : 1;
uint8_t limit_2 : 4;
uint8_t present : 1;
uint8_t desc_priv : 2;
uint8_t desc_type : 1;
uint8_t seg_type : 4;
uint8_t base_2 : 8;
uint16_t base_1 : 16;
uint16_t limit_1 : 16;
};
#endif /* !GDT_H */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.