riscv: add ARCH_SUPPORTS_DEBUG_PAGEALLOC support
authorZong Li <zong.li@sifive.com>
Mon, 9 Mar 2020 16:55:38 +0000 (00:55 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 26 Mar 2020 16:24:36 +0000 (09:24 -0700)
commit5fde3db5eb028b95aeefa1ab192d36800414e8b8
tree799134360c98c5e0e91f2c11f0e0cfe521116b56
parent395a21ff859c9c2471ea62d7d56af8a85ec333f7
riscv: add ARCH_SUPPORTS_DEBUG_PAGEALLOC support

ARCH_SUPPORTS_DEBUG_PAGEALLOC provides a hook to map and unmap
pages for debugging purposes. Implement the __kernel_map_pages
functions to fill the poison pattern.

Signed-off-by: Zong Li <zong.li@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/Kconfig
arch/riscv/mm/pageattr.c