xref: /optee_os/core/arch/riscv/mm/sub.mk (revision f7e4fc1e3c341532465a8e0c602e77d1cc7a3633)
1srcs-y += core_mmu_arch.c
2srcs-y += tlb_helpers_rv.S
3
4ifeq ($(CFG_SYSCALL_FTRACE),y)
5# We would not like to profile MMU APIs as these are used to switch TA
6# context which may cause undesired behaviour as ftrace requires TA context
7# to be active. Moreover profiling code uses some of MMU APIs to check
8# if TA context is active or not.
9cflags-remove-core_mmu_arch.c-y += -pg
10endif
11