We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7754b30 commit bce9ae9Copy full SHA for bce9ae9
libc/src/sys/mman/linux/x86_64/pkey_common.h
@@ -32,15 +32,15 @@ constexpr int BITS_PER_KEY = 2;
32
LIBC_INLINE uint32_t read_prku() {
33
uint32_t pkru = 0;
34
uint32_t edx = 0;
35
- LIBC_INLINE_ASM("rdpkru" : "=a"(pkru), "=d"(edx) : "c"(0));
+ asm volatile("rdpkru" : "=a"(pkru), "=d"(edx) : "c"(0));
36
return pkru;
37
}
38
39
// This will SIGILL on CPUs that don't support PKU / OSPKE,
40
// but this case should never be reached as a prior pkey_alloc invocation
41
// would have failed more gracefully.
42
LIBC_INLINE void write_prku(uint32_t pkru) {
43
- LIBC_INLINE_ASM("wrpkru" : : "a"(pkru), "d"(0), "c"(0));
+ asm volatile("wrpkru" : : "a"(pkru), "d"(0), "c"(0));
44
45
46
} // namespace internal
0 commit comments