Skip to content

Commit 6ebb496

Browse files
author
Markos Chandras
committed
MIPS: kernel: entry.S: Add MIPS R6 related definitions
The instruction hazard barrier in the form of: jr.hb ra nop is valid on MIPS R6 as well. Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
1 parent 8b8aa63 commit 6ebb496

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/mips/kernel/entry.S

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ syscall_exit_work:
158158
jal syscall_trace_leave
159159
b resume_userspace
160160

161-
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT)
161+
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR6) || \
162+
defined(CONFIG_MIPS_MT)
162163

163164
/*
164165
* MIPS32R2 Instruction Hazard Barrier - must be called
@@ -171,4 +172,4 @@ LEAF(mips_ihb)
171172
nop
172173
END(mips_ihb)
173174

174-
#endif /* CONFIG_CPU_MIPSR2 or CONFIG_MIPS_MT */
175+
#endif /* CONFIG_CPU_MIPSR2 or CONFIG_CPU_MIPSR6 or CONFIG_MIPS_MT */

0 commit comments

Comments
 (0)