aboutsummaryrefslogtreecommitdiff
path: root/mirai.old/boot/gdt/types.zig
blob: 41c891ae30d1ad135d5a30d09d833889fda808ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! GDT type definitions

pub const Entry = packed struct {
    limit_low: u16,
    base_low: u16,
    base_middle: u8,
    access: u8,
    granularity: u8,
    base_high: u8,
};

pub const TSSDescriptor = packed struct {
    length: u16,
    base_low: u16,
    base_middle: u8,
    flags1: u8,
    flags2: u8,
    base_high: u8,
    base_upper: u32,
    reserved: u32,
};

pub const Pointer = packed struct {
    limit: u16,
    base: u64,
};