xref: /optee_os/core/arch/riscv/mm/sub.mk (revision 6a7d728246ca45b6d1c4f4b1f2bb8d455d3c63cb)
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