BMOSP/kernel/cpu/load_gdt.s
Aren Elchinyan d5cb26f9a4 Оптимизация потребления ОЗУ
Теперь для запуска требуется всего 27 мегабайт ОЗУ!
2024-02-02 18:36:48 +03:00

16 lines
252 B
ArmAsm
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.global load_gdt
load_gdt:
cli
lgdt (%rdi) # Загружаем GDT
movw $0x30, %ax # Обновляем GDT
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