Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .global flush_gdt
- .type flush_gdt, function
- .align 16
- flush_gdt:
- lea [.LJMP_TARGET](%rip), %rax
- push %rdi
- push %rax
- REX.W ljmp *(%rsp)
- .align 16
- .LJMP_TARGET:
- mov %rsi, %ds
- mov %rsi, %es
- mov %rsi, %fs
- mov %rsi, %gs
- mov %rsi, %ss
- add $0x10,%rsp
- ret
- .size flush_gdt, . - flush_gdt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement