linux-mips
[Top] [All Lists]

[PATCH 4/14] lemote: Flush RAS and BTB for CPU predictively execution

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>, 彭亮锦 <penglj@lemote.com>, "zhangfx@lemote.com" <zhangfx@lemote.com>
Subject: [PATCH 4/14] lemote: Flush RAS and BTB for CPU predictively execution
From: yanhua <yanh@lemote.com>
Date: Thu, 09 Apr 2009 12:54:39 +0800
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
 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.5.6.5



<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 4/14] lemote: Flush RAS and BTB for CPU predictively execution, yanhua <=