From 4e453050996288f1706dd81562afa7532828a367 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 23 Oct 2022 02:23:58 +0300 Subject: [PATCH] no_stack_protector attribute to assembly functions --- include/cpu.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cpu.hpp b/include/cpu.hpp index f9eda31..23af650 100644 --- a/include/cpu.hpp +++ b/include/cpu.hpp @@ -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" ::