diff options
-rw-r--r-- | arch/mips/kernel/entry.S | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/kernel/entry.S b/arch/mips/kernel/entry.S index 371571f4f280..b1939a486d2c 100644 --- a/arch/mips/kernel/entry.S +++ b/arch/mips/kernel/entry.S | |||
@@ -119,3 +119,18 @@ syscall_exit_work: | |||
119 | li a1, 1 | 119 | li a1, 1 |
120 | jal do_syscall_trace | 120 | jal do_syscall_trace |
121 | b resume_userspace | 121 | b resume_userspace |
122 | |||
123 | #if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT) | ||
124 | |||
125 | /* | ||
126 | * MIPS32R2 Instruction Hazard Barrier - must be called | ||
127 | * | ||
128 | * For C code use the inline version named instruction_hazard(). | ||
129 | */ | ||
130 | LEAF(mips_ihb) | ||
131 | .set mips32r2 | ||
132 | jr.hb ra | ||
133 | nop | ||
134 | END(mips_ihb) | ||
135 | |||
136 | #endif /* CONFIG_CPU_MIPSR2 or CONFIG_MIPS_MT */ | ||