]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Support access filter to /dev/mem interface
authorHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:14 +0000 (16:36 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 12 Oct 2022 08:36:14 +0000 (16:36 +0800)
commit6e548079a728736273144a10a4fe38e84f9bd234
tree2ad87b94ebfa30791c7c9cf2ccf4eb41a263ceeb
parent0d027d7d3d08e1491a8004d25ac0c1ad313bea64
LoongArch: Support access filter to /dev/mem interface

Accidental access to /dev/mem is obviously disastrous, but specific
access can be used by people debugging the kernel. So select GENERIC_
LIB_DEVMEM_IS_ALLOWED, as well as define ARCH_HAS_VALID_PHYS_ADDR_RANGE
and related helpers, to support access filter to /dev/mem interface.

Signed-off-by: Weihao Li <liweihao@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/Kconfig
arch/loongarch/include/asm/io.h
arch/loongarch/mm/mmap.c