Go to the documentation of this file.
18 #ifndef __POK_X86_GDT_H__
19 #define __POK_X86_GDT_H__
45 #define GDT_CORE_CODE_SEGMENT 1
46 #define GDT_CORE_DATA_SEGMENT 2
47 #define GDT_TSS_SEGMENT 3
49 #define GDT_PARTITION_CODE_SEGMENT(partition_id) (4 + 2 * partition_id)
50 #define GDT_PARTITION_DATA_SEGMENT(partition_id) (4 + 2 * partition_id + 1)
52 #define GDT_BUILD_SELECTOR(seg, local, rpl) \
53 ((seg << 3) | ((local & 0x1) << 2) | (rpl & 0x3))