* [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively execution
@ 2009-05-15 22:19 Wu Zhangjin
2009-05-15 22:19 ` Wu Zhangjin
0 siblings, 1 reply; 2+ messages in thread
From: Wu Zhangjin @ 2009-05-15 22:19 UTC (permalink / raw)
To: linux-mips, Ralf Baechle
Cc: Arnaud Patard, loongson-dev, zhangfx, yanh, Philippe Vachon,
Zhang Le, Erwan Lerale
>From b023ba02ea5c0983ffb33ff486b3b4f8b5d972e6 Mon Sep 17 00:00:00 2001
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 16 May 2009 04:32:13 +0800
Subject: [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively
execution
---
arch/mips/include/asm/stackframe.h | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/stackframe.h
b/arch/mips/include/asm/stackframe.h
index db0fa7b..204286e 100644
--- a/arch/mips/include/asm/stackframe.h
+++ b/arch/mips/include/asm/stackframe.h
@@ -117,6 +117,24 @@
.endm
#else
.macro get_saved_sp /* Uniprocessor variation */
+#ifdef CONFIG_CPU_LOONGSON2
+ move k0,ra
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ move ra,k0
+ li k0,3
+ mtc0 k0,$22
+#endif
#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32)
lui k1, %hi(kernelsp)
#else
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively execution
2009-05-15 22:19 [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively execution Wu Zhangjin
@ 2009-05-15 22:19 ` Wu Zhangjin
0 siblings, 0 replies; 2+ messages in thread
From: Wu Zhangjin @ 2009-05-15 22:19 UTC (permalink / raw)
To: linux-mips, Ralf Baechle
Cc: Arnaud Patard, loongson-dev, zhangfx, yanh, Philippe Vachon,
Zhang Le, Erwan Lerale
From b023ba02ea5c0983ffb33ff486b3b4f8b5d972e6 Mon Sep 17 00:00:00 2001
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 16 May 2009 04:32:13 +0800
Subject: [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively
execution
---
arch/mips/include/asm/stackframe.h | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/stackframe.h
b/arch/mips/include/asm/stackframe.h
index db0fa7b..204286e 100644
--- a/arch/mips/include/asm/stackframe.h
+++ b/arch/mips/include/asm/stackframe.h
@@ -117,6 +117,24 @@
.endm
#else
.macro get_saved_sp /* Uniprocessor variation */
+#ifdef CONFIG_CPU_LOONGSON2
+ move k0,ra
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ jal 2008f
+ nop
+ 2008:
+ move ra,k0
+ li k0,3
+ mtc0 k0,$22
+#endif
#if defined(CONFIG_32BIT) || defined(KBUILD_64BIT_SYM32)
lui k1, %hi(kernelsp)
#else
--
1.6.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-15 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 22:19 [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively execution Wu Zhangjin
2009-05-15 22:19 ` Wu Zhangjin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox