Add get_gsbase()

This commit is contained in:
Justin C. Miller
2019-03-13 22:49:20 -07:00
parent 49bdf47514
commit 97e8f2c69a
3 changed files with 12 additions and 3 deletions

View File

@@ -8,6 +8,11 @@ get_rip:
pop rax ; do the same thing as 'ret', except with 'jmp'
jmp rax ; with the return address still in rax
global get_gsbase
get_gsbase:
rdgsbase rax
ret
global _halt
_halt:
hlt