From 1530a85d5aefcf6497ff2129023e9a0b002603dd Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 4 May 2021 15:30:24 +0200 Subject: Solving many issues: Aligning kernel stack, improve syscall mechanism, DISABLING RED-ZONE !!!! --- src/core/asm.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/asm.hpp') 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" \ -- cgit v1.2.3