Skip to content

Commit

Permalink
MIPS: kernel: entry.S: Add MIPS R6 related definitions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markos Chandras committed Feb 17, 2015
1 parent 8b8aa63 commit 6ebb496
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ syscall_exit_work:
jal syscall_trace_leave
b resume_userspace

#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT)
#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_CPU_MIPSR6) || \
defined(CONFIG_MIPS_MT)

/*
* MIPS32R2 Instruction Hazard Barrier - must be called
Expand All @@ -171,4 +172,4 @@ LEAF(mips_ihb)
nop
END(mips_ihb)

#endif /* CONFIG_CPU_MIPSR2 or CONFIG_MIPS_MT */
#endif /* CONFIG_CPU_MIPSR2 or CONFIG_CPU_MIPSR6 or CONFIG_MIPS_MT */

0 comments on commit 6ebb496

Please sign in to comment.