Skip to content

Commit ee0af4d

Browse files
xxkentabrodkin
authored andcommitted
ARC: Fix a mistake for I-cacche and D-cache invalidation.
1 parent 0d8c5b3 commit ee0af4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arc/kernel/head.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,10 @@
282282
.Lfirst_virt_addr\@:
283283
; flush caches
284284
mov r4, 0x1
285-
#ifdef CONFIG_ARC_HAS_ICACHE
285+
#ifdef CONFIG_ARC_HAS_DCACHE
286286
sr r4, [ARC_REG_DC_IVDC]
287287
#endif
288-
#ifdef CONFIG_ARC_HAS_DCACHE
288+
#ifdef CONFIG_ARC_HAS_ICACHE
289289
sr r4, [ARC_REG_IC_IVIC]
290290
#endif
291291
mov r4, 0x0

0 commit comments

Comments
 (0)