diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2017-04-03 04:24:33 +0200 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2017-04-05 19:27:53 +0200 |
commit | 9b0aa14e31555b64460c1ee323d0e19bf891958b (patch) | |
tree | c9e6e6d94ec4f891b240b97d95c1fec2aaaa959e /arch/arm64/include/asm/cacheflush.h | |
parent | arm64: kdump: reserve memory for crash dump kernel (diff) | |
download | linux-9b0aa14e31555b64460c1ee323d0e19bf891958b.tar.xz linux-9b0aa14e31555b64460c1ee323d0e19bf891958b.zip |
arm64: mm: add set_memory_valid()
This function validates and invalidates PTE entries, and will be utilized
in kdump to protect loaded crash dump kernel image.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cacheflush.h')
-rw-r--r-- | arch/arm64/include/asm/cacheflush.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cacheflush.h b/arch/arm64/include/asm/cacheflush.h index 5a2a6ee65f65..728f933cef8c 100644 --- a/arch/arm64/include/asm/cacheflush.h +++ b/arch/arm64/include/asm/cacheflush.h @@ -154,5 +154,6 @@ 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, unsigned long size, int enable); #endif |