mirror of
https://github.com/0Nera/BMOSP.git
synced 2024-11-26 18:39:37 +03:00
16 lines
201 B
ArmAsm
16 lines
201 B
ArmAsm
.global load_gdt
|
|
load_gdt:
|
|
cli
|
|
lgdt (%rdi)
|
|
movw $0x30, %ax
|
|
mov %ax, %ds
|
|
mov %ax, %es
|
|
mov %ax, %fs
|
|
mov %ax, %gs
|
|
mov %ax, %ss
|
|
pop %rdi
|
|
mov $0x28, %rax
|
|
push %rax
|
|
push %rdi
|
|
retfq
|