| To: | linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 20/30] loongson: Flush RAS and BTB for CPU predictively execution |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Sat, 16 May 2009 06:19:37 +0800 |
| Cc: | Arnaud Patard <apatard@mandriva.com>, loongson-dev@googlegroups.com, zhangfx@lemote.com, yanh@lemote.com, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Erwan Lerale <erwan@thiscow.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :content-type:organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=arXqj3HMeRroHuttz0ycR/pYHF1O0TQukbpF/x7uDIk=; b=uH5BFSD5sFs17+KmWonpt+zTzCHI9zu/qa9hp0/GVl++12CEbFJW7LA5OBlwO/D1Uo u6WjOA65NMAMArAEldbSbKyq8btNv+li5b0C3LcKQZPM8KU/K+uHq4OJFaDALltXzID3 DfxxU2G09RxDk2u1CE2fM5cghqNtb+TDbnEhs= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:content-type:organization:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=XHI9CqyPgEBPQ9LDZz7GS2PjW+0P2ZwDmHxGwQSMK9vgl/uC2dW0ZDdXzZX4oHx308 7DVlxEcqU66lL5+vC/TTqBcer4CIAYULO5Ljd7VWwGr65yZidjB33g+tbikDHGaJD6yz MThoa89ota+XV5b2CCICt+CZf9Kr+TfzfpkKk= |
| Organization: | DSLab, Lanzhou University, China |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Reply-to: | wuzhangjin@gmail.com |
| Sender: | linux-mips-bounce@linux-mips.org |
>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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 19/30] loongson: Add a default kernel config file for yeeloong(2f), Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH 21/30] loongson: define Loongson2F arch specific phys prot access, Wu Zhangjin |
| Previous by Thread: | [PATCH 19/30] loongson: Add a default kernel config file for yeeloong(2f), Wu Zhangjin |
| Next by Thread: | [PATCH 21/30] loongson: define Loongson2F arch specific phys prot access, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |