summaryrefslogtreecommitdiff
path: root/rt/+x86_64/gdt16.S
blob: 6b748196b258eb216fa03e1895704e62c9c9598c (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
.globl gdt16
gdt16:
	.quad 0
.globl gdt16_code
gdt16_code:
	.short 0xFFFF
	.short 0x0000
	.byte 0x00
	.byte 0b10011010
	.byte 0b10001111
	.byte 0x00
.globl gdt16_data
gdt16_data:
	.short 0xFFFF
	.short 0x0000
	.byte 0x00
	.byte 0b10010010
	.byte 0b10001111
	.byte 0x00
.globl gdtr16
gdtr16:
	.short gdtr16 - gdt16 - 1
	.int gdt16