2020-06-09 16:26:53 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
|
|
#ifndef __ASM_MMAN_H
|
|
|
|
#define __ASM_MMAN_H
|
|
|
|
|
2019-02-08 18:11:00 +08:00
|
|
|
#include <asm-generic/mman.h>
|
2020-06-09 16:26:53 +02:00
|
|
|
|
|
|
|
#define PROT_BTI 0x10 /* BTI guarded page */
|
2020-10-26 11:34:30 -04:00
|
|
|
#define PROT_MTE 0x20 /* Normal Tagged mapping */
|
2020-06-09 16:26:53 +02:00
|
|
|
|
2024-10-28 10:38:09 +08:00
|
|
|
/* Override any generic PKEY permission defines */
|
|
|
|
#define PKEY_DISABLE_EXECUTE 0x4
|
|
|
|
#define PKEY_DISABLE_READ 0x8
|
|
|
|
#undef PKEY_ACCESS_MASK
|
|
|
|
#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\
|
|
|
|
PKEY_DISABLE_WRITE |\
|
|
|
|
PKEY_DISABLE_READ |\
|
|
|
|
PKEY_DISABLE_EXECUTE)
|
|
|
|
|
2020-06-09 16:26:53 +02:00
|
|
|
#endif /* ! _UAPI__ASM_MMAN_H */
|