mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
a8f0c31fa8
Many xtensa CPU cores without full MMU still have memory protection features capable of raising exceptions for invalid instruction fetches/data access. Allow handling such exceptions. This improves behavior of processes that pass invalid memory pointers to syscalls in noMMU configs: in case of exception the kernel instead of killing the process is now able to return -EINVAL from a syscall. Introduce CONFIG_PFAULT that controls whether protection fault code is enabled and register handlers for common memory protection exceptions when it is enabled. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
15 lines
382 B
Makefile
15 lines
382 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Makefile for the Linux/Xtensa-specific parts of the memory manager.
|
|
#
|
|
|
|
obj-y := init.o misc.o
|
|
obj-$(CONFIG_PFAULT) += fault.o
|
|
obj-$(CONFIG_MMU) += cache.o ioremap.o mmu.o tlb.o
|
|
obj-$(CONFIG_HIGHMEM) += highmem.o
|
|
obj-$(CONFIG_KASAN) += kasan_init.o
|
|
|
|
KASAN_SANITIZE_fault.o := n
|
|
KASAN_SANITIZE_kasan_init.o := n
|
|
KASAN_SANITIZE_mmu.o := n
|