projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a682a24
)
[MIPS] R2: Instruction hazard barrier.
author
Ralf Baechle
<ralf@linux-mips.org>
Wed, 5 Apr 2006 08:45:45 +0000
(09:45 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Wed, 19 Apr 2006 02:14:22 +0000
(
04:14
+0200)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/entry.S
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/entry.S
b/arch/mips/kernel/entry.S
index 371571f4f280b01628460f28ff33ef1eaa09cb0a..b1939a486d2c586c82f77caf05e3e84eccd0611a 100644
(file)
--- a/
arch/mips/kernel/entry.S
+++ b/
arch/mips/kernel/entry.S
@@
-119,3
+119,18
@@
syscall_exit_work:
li a1, 1
jal do_syscall_trace
b resume_userspace
+
+#if defined(CONFIG_CPU_MIPSR2) || defined(CONFIG_MIPS_MT)
+
+/*
+ * MIPS32R2 Instruction Hazard Barrier - must be called
+ *
+ * For C code use the inline version named instruction_hazard().
+ */
+LEAF(mips_ihb)
+ .set mips32r2
+ jr.hb ra
+ nop
+ END(mips_ihb)
+
+#endif /* CONFIG_CPU_MIPSR2 or CONFIG_MIPS_MT */