summaryrefslogtreecommitdiff
path: root/src/nasty.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/nasty.S')
-rw-r--r--src/nasty.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nasty.S b/src/nasty.S
index ac9fc91..9fdab5f 100644
--- a/src/nasty.S
+++ b/src/nasty.S
@@ -42,6 +42,11 @@ get_cr2:
mov rax, cr2
ret
+.global get_cr3
+get_cr3:
+ mov rax, cr3
+ ret
+
#define DEFINE_ISRS \
ISR(0) \
ISR(1) \