os/gdt_flush.s
2024-05-23 20:59:18 +03:00

18 lines
269 B
ArmAsm

.section .text
.align 4
.global gdt_flush
.type gdt_flush, @function
gdt_flush:
lgdt gdt_ptr
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