All of lore.kernel.org
 help / color / mirror / Atom feed
From: yanhua <yanh@lemote.com>
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
Date: Thu, 09 Apr 2009 12:54:39 +0800	[thread overview]
Message-ID: <49DD7F8F.6010800@lemote.com> (raw)

 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

                 reply	other threads:[~2009-04-09  4:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49DD7F8F.6010800@lemote.com \
    --to=yanh@lemote.com \
    --cc=linux-mips@linux-mips.org \
    --cc=penglj@lemote.com \
    --cc=ralf@linux-mips.org \
    --cc=zhangfx@lemote.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.