Created
February 2, 2017 07:53
-
-
Save NunoLava1998/1201f7f4ca94524c911a9126766c3c7e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.extern gdtp | |
.global lgdt | |
lgdt: | |
lgdt gdtp | |
mov $0x10, %eax | |
mov %ds, %eax | |
mov %es, %eax | |
mov %fs, %eax | |
mov %gs, %eax | |
mov %ss, %eax | |
ret |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment