| To: | linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [loongson-PATCH-v1 25/27] Flush RAS and BTB for CPU predictively execution |
| From: | wuzhangjin@gmail.com |
| Date: | Thu, 21 May 2009 06:13:19 +0800 |
| Cc: | Wu Zhangjin <wuzhangjin@gmail.com>, Yan hua <yanh@lemote.com>, Philippe Vachon <philippe@cowpig.ca>, Zhang Le <r0bertz@gentoo.org>, Zhang Fuxin <zhangfx@lemote.com>, Arnaud Patard <apatard@mandriva.com>, loongson-dev@googlegroups.com, gnewsense-dev@nongnu.org, Nicholas Mc Guire <hofrat@hofr.at>, Liu Junliang <liujl@lemote.com>, 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:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=E2YeYECAGncvIcH7wDZoMlVT850Fxl5InfxSuGOpzaU=; b=lEd7T1/PYXvYwbXauRgR/+AXW6gw+9atJ/d4K3IXGRZzMX6DoWuatFT00pjuXWmKd4 0+Yo6KSN/fFs6eYIEMjWr1eDKADG4on6rMBw7gWzbPHCTyxTqovuG6fYY1kkTd9Wykwq eIuRQCysTW1F3iMfpG0Bbhevhp+MWZ+BlhnZw= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Qp34cdbFcuZLz5CU2RApZwqQT9ux6sA/Y0qyIiopD6OY65t1xmQTn8WC9Rqx5dYwwl koR39U5BnnGGGdG4nSIsO7hrVT90RGvK38YgRacEZyXLbtIjv2/hofjEjz3UrXULKYkH FT/AeNb7c+nWHYOf5B5Tjyra22gr0t51dBLV4= |
| In-reply-to: | <cover.1242855716.git.wuzhangjin@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1242855716.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com> This is directly picked from the to-mips branch of http://dev.lemote.com/code/linux_loongson Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com> --- arch/mips/include/asm/stackframe.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/mips/include/asm/stackframe.h b/arch/mips/include/asm/stackframe.h index db0fa7b..8b92e56 100644 --- a/arch/mips/include/asm/stackframe.h +++ b/arch/mips/include/asm/stackframe.h @@ -117,6 +117,20 @@ .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 |
| Previous by Date: | [loongson-PATCH-v1 24/27] fixup for FUJITSU disk, wuzhangjin |
|---|---|
| Next by Date: | [loongson-PATCH-v1 26/27] add default kernel config file for loongson-based machines, wuzhangjin |
| Previous by Thread: | Re: [loongson-PATCH-v1 24/27] fixup for FUJITSU disk, yanh |
| Next by Thread: | [loongson-PATCH-v1 26/27] add default kernel config file for loongson-based machines, wuzhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |