mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-28 15:34:33 +00:00
no_stack_protector attribute to assembly functions
This commit is contained in:
parent
8308506ace
commit
4e45305099
@ -197,7 +197,7 @@ namespace CPU
|
||||
|
||||
namespace MemBar
|
||||
{
|
||||
static inline void Barrier()
|
||||
__attribute__((no_stack_protector)) static inline void Barrier()
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("" ::
|
||||
@ -208,7 +208,7 @@ namespace CPU
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void Fence()
|
||||
__attribute__((no_stack_protector)) static inline void Fence()
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("mfence" ::
|
||||
@ -219,7 +219,7 @@ namespace CPU
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void StoreFence()
|
||||
__attribute__((no_stack_protector)) static inline void StoreFence()
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("sfence" ::
|
||||
@ -230,7 +230,7 @@ namespace CPU
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void LoadFence()
|
||||
__attribute__((no_stack_protector)) static inline void LoadFence()
|
||||
{
|
||||
#if defined(__amd64__) || defined(__i386__)
|
||||
asmv("lfence" ::
|
||||
|
Loading…
x
Reference in New Issue
Block a user