diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-04 15:30:24 +0200 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2021-05-04 15:30:24 +0200 |
| commit | 1530a85d5aefcf6497ff2129023e9a0b002603dd (patch) | |
| tree | ea6098d0dcafabba0ffc2f28ea5c136f731996b9 /src/core/asm.hpp | |
| parent | 64a17f3e0683a0a492a3fed9c4c17a4335d1f421 (diff) | |
Solving many issues: Aligning kernel stack, improve syscall mechanism,
DISABLING RED-ZONE !!!!
Diffstat (limited to 'src/core/asm.hpp')
| -rw-r--r-- | src/core/asm.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/asm.hpp b/src/core/asm.hpp index a1d7437..0ffc946 100644 --- a/src/core/asm.hpp +++ b/src/core/asm.hpp @@ -1,5 +1,9 @@ #pragma once +#define cli() asm("cli") + +#define sti() asm("sti") + #define READ_MSR(reg,high,low) \ asm volatile( \ "mov %2, %%ecx;rdmsr \n\t" \ |
