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