2021-11-16 20:17:49 +00:00
|
|
|
.global LoadGlobalDescriptorTable
|
2021-11-03 19:03:38 +00:00
|
|
|
|
2021-11-16 20:17:49 +00:00
|
|
|
LoadGlobalDescriptorTable:
|
|
|
|
lgdt gdtDescriptor
|
2021-11-03 19:03:38 +00:00
|
|
|
|
2021-11-16 20:17:49 +00:00
|
|
|
movw $16, %ax
|
2021-11-16 12:57:15 +00:00
|
|
|
movw %ax, %ds
|
|
|
|
movw %ax, %es
|
|
|
|
movw %ax, %fs
|
|
|
|
movw %ax, %gs
|
|
|
|
movw %ax, %ss
|
|
|
|
|
2021-11-16 20:17:49 +00:00
|
|
|
jmp $8,$flush
|
2021-11-16 12:57:15 +00:00
|
|
|
|
2021-11-16 20:17:49 +00:00
|
|
|
flush:
|
|
|
|
ret
|
2021-11-16 12:57:15 +00:00
|
|
|
|
2021-11-16 20:17:49 +00:00
|
|
|
|
2021-11-03 19:03:38 +00:00
|
|
|
|