20 lines
223 B
ArmAsm
20 lines
223 B
ArmAsm
.global gdt_flush
|
|
|
|
gdt_flush:
|
|
cli
|
|
|
|
mov 4(%esp), %eax
|
|
lgdt (%eax)
|
|
|
|
mov $0x10, %ax
|
|
mov %ax, %ds
|
|
mov %ax, %es
|
|
mov %ax, %fs
|
|
mov %ax, %gs
|
|
mov %ax, %ss
|
|
|
|
jmp $0x08, $.flush
|
|
|
|
.flush:
|
|
ret
|