diff options
Diffstat (limited to 'src/core/asm.hpp')
| -rw-r--r-- | src/core/asm.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/asm.hpp b/src/core/asm.hpp index 8a931f6..a1d7437 100644 --- a/src/core/asm.hpp +++ b/src/core/asm.hpp @@ -21,3 +21,6 @@ #define inb(port,dst) \ asm volatile ("inb %%dx, %%al": "=a" (dst) : "d" (port)) + +#define lpml4(pml4) \ + asm volatile ("mov %0, %%rax; mov %%rax, %%cr3":: "r" (pml4)) |
