1f76b348eSCornelia Huck /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2f76b348eSCornelia Huck #ifndef __ASM_MMAN_H 3f76b348eSCornelia Huck #define __ASM_MMAN_H 4f76b348eSCornelia Huck 58cf108c5SZhang Yi #include <asm-generic/mman.h> 6f76b348eSCornelia Huck 7f76b348eSCornelia Huck #define PROT_BTI 0x10 /* BTI guarded page */ 853ba2eeeSMatthew Rosato #define PROT_MTE 0x20 /* Normal Tagged mapping */ 9f76b348eSCornelia Huck 10*0d2eeef7SBibo Mao /* Override any generic PKEY permission defines */ 11*0d2eeef7SBibo Mao #define PKEY_DISABLE_EXECUTE 0x4 12*0d2eeef7SBibo Mao #define PKEY_DISABLE_READ 0x8 13*0d2eeef7SBibo Mao #undef PKEY_ACCESS_MASK 14*0d2eeef7SBibo Mao #define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\ 15*0d2eeef7SBibo Mao PKEY_DISABLE_WRITE |\ 16*0d2eeef7SBibo Mao PKEY_DISABLE_READ |\ 17*0d2eeef7SBibo Mao PKEY_DISABLE_EXECUTE) 18*0d2eeef7SBibo Mao 19f76b348eSCornelia Huck #endif /* ! _UAPI__ASM_MMAN_H */ 20