diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-04-05 04:45:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-04-18 22:14:22 -0400 |
commit | bce1a28686ed6527977a198f698278b67c6bf9ec (patch) | |
tree | 814c2a32011c8f7279fb3244cf6215e1dd82a95d /arch | |
parent | a682a2417007ad6265cd71b97b751753fd10e2fb (diff) |
[MIPS] R2: Instruction hazard barrier.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-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 */ | ||