aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot/boot.stage2.gdt32.asm
blob: f766d82c6176870ecc37849aec3ce61a0a526195 (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
27
28
29
    ;; boot.stage2.gdt32.asm

    
GDT32:  
    .null:
    dd 0x0
    dd 0x0
    .code:
    dw 0xffff
    dw 0x0000
    db 0x00
    db 10011010b
    db 11001111b
    db 0x00
    .data:
    dw 0xffff
    dw 0x0000
    db 0x00
    db 10010010b
    db 11001111b
    db 0x00
GDT32_end:  

GDT32_ptr:  
    .limit: dw GDT32_end - GDT32 - 1
    .base: dd GDT32

    CODE_SEG32 equ GDT32.code - GDT32
    DATA_SEG32 equ GDT32.data - GDT32