From 780127138ef45e4e0baee5a8616bd5c335f5ebe6 Mon Sep 17 00:00:00 2001 From: segfault Date: Sun, 11 Oct 2020 10:01:32 -0700 Subject: Added simple x86_64-ASM source to get the current IP. --- KMemDriver/Utils.asm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 KMemDriver/Utils.asm (limited to 'KMemDriver/Utils.asm') diff --git a/KMemDriver/Utils.asm b/KMemDriver/Utils.asm new file mode 100644 index 0000000..d95a64e --- /dev/null +++ b/KMemDriver/Utils.asm @@ -0,0 +1,11 @@ +PUBLIC getCurrentRIP + +.code _text + +getCurrentRIP PROC PUBLIC +pop rax +push rax +ret +getCurrentRIP ENDP + +END \ No newline at end of file -- cgit v1.2.3