mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4beba9486a
For arm64 MTE support it is necessary to be able to mark pages that contain user space visible tags that will need to be saved/restored e.g. when swapped out. To support this add a new arch specific flag (PG_arch_2). This flag is only available on 64-bit architectures due to the limited number of spare page flags on the 32-bit ones. Signed-off-by: Steven Price <steven.price@arm.com> [catalin.marinas@arm.com: use CONFIG_64BIT for guarding this new flag] Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Andrew Morton <akpm@linux-foundation.org>
23 lines
528 B
C
23 lines
528 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef LINUX_KERNEL_PAGE_FLAGS_H
|
|
#define LINUX_KERNEL_PAGE_FLAGS_H
|
|
|
|
#include <uapi/linux/kernel-page-flags.h>
|
|
|
|
|
|
/* kernel hacking assistances
|
|
* WARNING: subject to change, never rely on them!
|
|
*/
|
|
#define KPF_RESERVED 32
|
|
#define KPF_MLOCKED 33
|
|
#define KPF_MAPPEDTODISK 34
|
|
#define KPF_PRIVATE 35
|
|
#define KPF_PRIVATE_2 36
|
|
#define KPF_OWNER_PRIVATE 37
|
|
#define KPF_ARCH 38
|
|
#define KPF_UNCACHED 39
|
|
#define KPF_SOFTDIRTY 40
|
|
#define KPF_ARCH_2 41
|
|
|
|
#endif /* LINUX_KERNEL_PAGE_FLAGS_H */
|