os/gdt_flush.s
2024-05-25 19:20:33 +03:00

15 lines
215 B
ArmAsm

.global gdt_flush
gdt_flush:
lgdt gdtp
jmp $0x08, $reload_cs
reload_cs:
movw $0x10, %ax
movw %ax, %ds
movw %ax, %es
movw %ax, %fs
movw %ax, %gs
movw %ax, %ss
ret