aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm
diff options
context:
space:
mode:
authorWang Kefeng <wangkefeng.wang@huawei.com>2021-12-03 10:26:31 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-12-17 11:34:36 +0000
commit0ba8695e3dfbbc78ed716805678119121d33a730 (patch)
tree867eadfe2d6cb47025985eb5718f6de1e710c4c0 /arch/arm/include/asm
parentARM: 9163/1: amba: Move of_amba_device_decode_irq() into amba_probe() (diff)
downloadlinux-dev-0ba8695e3dfbbc78ed716805678119121d33a730.tar.xz
linux-dev-0ba8695e3dfbbc78ed716805678119121d33a730.zip
ARM: 9164/1: mm: Provide set_memory_valid()
This function validates and invalidates PTE entries, it will be used in the later patch. Acked-by: Marco Elver <elver@google.com> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/include/asm')
-rw-r--r--arch/arm/include/asm/set_memory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/set_memory.h b/arch/arm/include/asm/set_memory.h
index ec17fc0fda7a..0211b9c5b14d 100644
--- a/arch/arm/include/asm/set_memory.h
+++ b/arch/arm/include/asm/set_memory.h
@@ -11,6 +11,7 @@ int set_memory_ro(unsigned long addr, int numpages);
int set_memory_rw(unsigned long addr, int numpages);
int set_memory_x(unsigned long addr, int numpages);
int set_memory_nx(unsigned long addr, int numpages);
+int set_memory_valid(unsigned long addr, int numpages, int enable);
#else
static inline int set_memory_ro(unsigned long addr, int numpages) { return 0; }
static inline int set_memory_rw(unsigned long addr, int numpages) { return 0; }