boucane/src/core/gdt.S

26 lines
317 B
ArmAsm
Raw Normal View History

2021-04-27 19:02:17 +02:00
.code64
gdt64:
gdt64_null:
.long 0
.long 0
gdt64_cs:
.long 0
.byte 0
.byte 0b10011100
.byte 0b00100000
.byte 0
gdt64_ds:
.long 0
.byte 0
.byte 0b10010010
.word 0
gdtr:
.word . - gdt64 - 1
.quad gdt64
.global load_gdt
load_gdt:
lgdt (gdtr)
ret