Advertisement
Guest User

Untitled

a guest
Jul 17th, 2024
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. .global flush_gdt
  2. .type flush_gdt, function
  3. .align 16
  4. flush_gdt:
  5. lea [.LJMP_TARGET](%rip), %rax
  6. push %rdi
  7. push %rax
  8. REX.W ljmp *(%rsp)
  9. .align 16
  10. .LJMP_TARGET:
  11. mov %rsi, %ds
  12. mov %rsi, %es
  13. mov %rsi, %fs
  14. mov %rsi, %gs
  15. mov %rsi, %ss
  16. add $0x10,%rsp
  17. ret
  18. .size flush_gdt, . - flush_gdt
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement