diff options
author | Szabolcs Nagy <nsz@port70.net> | 2020-12-19 20:27:22 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2021-02-15 09:16:06 -0500 |
commit | 54ca1cc7f1bce1c19593c0176aead964a2534933 (patch) | |
tree | 63fc03daa1d33ec67d877e0937517198d1109fe4 | |
parent | fd285f9dec226ca9e5377888ee24e3f8f5ada49f (diff) | |
download | musl-54ca1cc7f1bce1c19593c0176aead964a2534933.tar.gz musl-54ca1cc7f1bce1c19593c0176aead964a2534933.tar.bz2 musl-54ca1cc7f1bce1c19593c0176aead964a2534933.tar.xz musl-54ca1cc7f1bce1c19593c0176aead964a2534933.zip |
sys/membarrier.h: add new constants from linux v5.10
can cause rseq restart on another cpu to synchronize with global
memory access from rseq critical sections, see
linux commit 2a36ab717e8fe678d98f81c14a0b124712719840
rseq/membarrier: Add MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ
-rw-r--r-- | include/sys/membarrier.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/membarrier.h b/include/sys/membarrier.h index 10cb3108..11193eda 100644 --- a/include/sys/membarrier.h +++ b/include/sys/membarrier.h @@ -9,9 +9,13 @@ #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED 16 #define MEMBARRIER_CMD_PRIVATE_EXPEDITED_SYNC_CORE 32 #define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_SYNC_CORE 64 +#define MEMBARRIER_CMD_PRIVATE_EXPEDITED_RSEQ 128 +#define MEMBARRIER_CMD_REGISTER_PRIVATE_EXPEDITED_RSEQ 256 #define MEMBARRIER_CMD_SHARED MEMBARRIER_CMD_GLOBAL +#define MEMBARRIER_CMD_FLAG_CPU 1 + int membarrier(int, int); #endif |