mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-15 23:53:51 +00:00

Currently CONFIG_GENERIC_ENTRY enables both the generic exception entry logic and the generic syscall entry logic, which are otherwise loosely coupled. Introduce separate config options for these so that architectures can select the two independently. This will make it easier for architectures to migrate to generic entry code. Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/20250213130007.1418890-2-ruanjinjie@huawei.com Link: https://lore.kernel.org/all/20250624-generic-entry-split-v1-1-53d5ef4f94df@linaro.org [Linus Walleij: rebase onto v6.16-rc1]
18 lines
626 B
Makefile
18 lines
626 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Prevent the noinstr section from being pestered by sanitizer and other goodies
|
|
# as long as these things cannot be disabled per function.
|
|
KASAN_SANITIZE := n
|
|
UBSAN_SANITIZE := n
|
|
KCOV_INSTRUMENT := n
|
|
|
|
# Branch profiling isn't noinstr-safe
|
|
ccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING
|
|
|
|
CFLAGS_REMOVE_common.o = -fstack-protector -fstack-protector-strong
|
|
CFLAGS_common.o += -fno-stack-protector
|
|
|
|
obj-$(CONFIG_GENERIC_IRQ_ENTRY) += common.o
|
|
obj-$(CONFIG_GENERIC_SYSCALL) += syscall-common.o syscall_user_dispatch.o
|
|
obj-$(CONFIG_KVM_XFER_TO_GUEST_WORK) += kvm.o
|