linux-mips
[Top] [All Lists]

[PATCH v2 1/2] MIPS: tlbex: Fix typo in r3000 tlb store handler

To: ralf@linux-mips.org, "Jayachandran C." <jchandra@broadcom.com>
Subject: [PATCH v2 1/2] MIPS: tlbex: Fix typo in r3000 tlb store handler
From: Tony Wu <tung7970@gmail.com>
Date: Thu, 18 Jul 2013 18:45:47 +0800
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=EA+ykVqBhamyPl4nAm6Rmhbve9Z8daMF0j9jM1jrbGU=; b=Gh4HBqreYZAUJZdieRAJJ3bAYdGq7Dbl1hzDSFLi3yo+fiWbKT8C2qvgpFFMneyypn t5SKZ9iXIIIAQFbBo8CzIIwCqxwShU+zikUnrigE9jqHAh9rC0TilfLs+3yWB/sht4QT uoCvXsNHiPdhoFKcqgIi5wIIa6ZpiL13cJf8l9o0CRjYQxK8vu1B6p1mRFMbn16KHQin o3PnGiaqgY7TV+CW/p0qYOGNwvezIvCZXyLPuqHXmpW0cCkAHIcybpjuBrz+I9FG82Um LhAzCRt9S3VWbztIky5Ix6dpY2zyvuy1Rnu2BQ0bK9SSQugGEJwtATDxt7kePgEcrf/r uXPw==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
commit 6ba045f (MIPS: Move generated code to .text for microMIPS)
causes a panic at boot. The handler builder should test against
handle_tlbs_end, not handle_tlbs.

Signed-off-by: Tony Wu <tung7970@gmail.com>
Cc: Jayachandran C <jchandra@broadcom.com>
Acked-by: Jayachandran C. <jchandra@broadcom.com>
---
 arch/mips/mm/tlbex.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 9ab0f90..605b6fc 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -1803,7 +1803,7 @@ static void __cpuinit build_r3000_tlb_store_handler(void)
        uasm_i_j(&p, (unsigned long)tlb_do_page_fault_1 & 0x0fffffff);
        uasm_i_nop(&p);
 
-       if (p >= handle_tlbs)
+       if (p >= handle_tlbs_end)
                panic("TLB store handler fastpath space exceeded");
 
        uasm_resolve_relocs(relocs, labels);
-- 
1.7.10.2

<Prev in Thread] Current Thread [Next in Thread>