Skip to content

Commit 359ae00

Browse files
committed
csky: Fixup ftrace modify panic
During ftrace init, linux will replace all function prologues (call_mcout) with nops, but it need flush_dcache and invalidate_icache to make it work. So flush_cache functions couldn't be nested called by ftrace framework. Signed-off-by: Guo Ren <[email protected]>
1 parent 997153b commit 359ae00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/csky/mm/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
ifeq ($(CONFIG_CPU_HAS_CACHEV2),y)
33
obj-y += cachev2.o
4+
CFLAGS_REMOVE_cachev2.o = $(CC_FLAGS_FTRACE)
45
else
56
obj-y += cachev1.o
7+
CFLAGS_REMOVE_cachev1.o = $(CC_FLAGS_FTRACE)
68
endif
79

810
obj-y += dma-mapping.o

0 commit comments

Comments
 (0)