Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.1830);
	 Tue, 10 Jul 2007 10:22:07 -0700
Received: from ftp.linux-mips.org ([194.74.144.162]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.1830);
	 Tue, 10 Jul 2007 10:22:07 -0700
Received: from localhost.localdomain ([127.0.0.1]:18919 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20021793AbXGJRVv (ORCPT <rfc822;dan.stein@onstor.com> + 1 other);
	Tue, 10 Jul 2007 18:21:51 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 10 Jul 2007 18:21:31 +0100 (BST)
Received: from static-72-72-73-123.bstnma.east.verizon.net ([72.72.73.123]:51463
	"EHLO mail.sicortex.com") by ftp.linux-mips.org with ESMTP
	id S20021788AbXGJRV3 (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Tue, 10 Jul 2007 18:21:29 +0100
Received: from localhost (localhost [127.0.0.1])
	by mail.sicortex.com (Postfix) with ESMTP id DA17C2050DB;
	Tue, 10 Jul 2007 13:20:52 -0400 (EDT)
X-Virus-Scanned: amavisd-new at sicortex.com
Received: from mail.sicortex.com ([127.0.0.1])
	by localhost (mail.sicortex.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id g08s9ij070FZ; Tue, 10 Jul 2007 13:20:52 -0400 (EDT)
Received: from localhost.localdomain (gsrv020.sicortex.com [10.2.2.20])
	by mail.sicortex.com (Postfix) with ESMTP id EDBEB1CF2AB;
	Tue, 10 Jul 2007 13:20:51 -0400 (EDT)
From:	pwatkins@sicortex.com
To:	linux-mips@linux-mips.org, ralf@linux-mips.org
Cc:	From: Peter Watkins <pwatkins@sicortex.com>
Subject: [PATCH] [MIPS] Fix resume for 64K page size
Date:	Tue, 10 Jul 2007 13:20:51 -0400
Message-Id: <11840880513393-git-send-email-pwatkins@sicortex.com>
X-Mailer: git-send-email 1.4.2.4
X-archive-position: 15670
X-ecartis-version: Ecartis v1.0.0
Sender:	linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: pwatkins@sicortex.com
Precedence: bulk
X-list:	linux-mips
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 10 Jul 2007 17:22:07.0207 (UTC) FILETIME=[D74B1F70:01C7C316]

This fixes a bug when running 64K page size on r4k machines. 


Signed-off-by: Peter Watkins <pwatkins@sicortex.com>
---
 arch/mips/kernel/r4k_switch.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/kernel/r4k_switch.S b/arch/mips/kernel/r4k_switch.S
index 0672959..65f0f91 100644
--- a/arch/mips/kernel/r4k_switch.S
+++ b/arch/mips/kernel/r4k_switch.S
@@ -85,7 +85,7 @@ #endif
 	move	$28, a2
 	cpu_restore_nonscratch a1
 
-#if (_THREAD_SIZE - 32) < 0x10000
+#if (_THREAD_SIZE) < 0x10000
 	PTR_ADDIU	t0, $28, _THREAD_SIZE - 32
 #else
 	PTR_LI		t0, _THREAD_SIZE - 32
-- 
1.4.2.4


