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:46:13 -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:46:13 -0700
Received: from localhost.localdomain ([127.0.0.1]:37802 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S20021798AbXGJRpu (ORCPT <rfc822;dan.stein@onstor.com> + 1 other);
	Tue, 10 Jul 2007 18:45:50 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 10 Jul 2007 18:45:29 +0100 (BST)
Received: from static-72-72-73-123.bstnma.east.verizon.net ([72.72.73.123]:5897
	"EHLO mail.sicortex.com") by ftp.linux-mips.org with ESMTP
	id S20021784AbXGJRp1 (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Tue, 10 Jul 2007 18:45:27 +0100
Received: from localhost (localhost [127.0.0.1])
	by mail.sicortex.com (Postfix) with ESMTP id E2B5C2074C8;
	Tue, 10 Jul 2007 13:44:51 -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 hVL1IkBqvxYG; Tue, 10 Jul 2007 13:44:51 -0400 (EDT)
Received: from localhost.localdomain (gsrv020.sicortex.com [10.2.2.20])
	by mail.sicortex.com (Postfix) with ESMTP id 354352074C4;
	Tue, 10 Jul 2007 13:44:51 -0400 (EDT)
From:	pwatkins@sicortex.com
To:	linux-mips@linux-mips.org, ralf@linux-mips.org
Cc:	Peter Watkins <pwatkins@sicortex.com>
Subject: [PATCH] [MIPS] Fix resume for 64k page size (#2).
Date:	Tue, 10 Jul 2007 13:44:51 -0400
Message-Id: <11840894911139-git-send-email-pwatkins@sicortex.com>
X-Mailer: git-send-email 1.4.2.4
X-archive-position: 15675
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:46:13.0404 (UTC) FILETIME=[354B45C0:01C7C31A]

From: Peter Watkins <pwatkins@sicortex.com>

Fixup according to Thiemo and Maciej's comments.

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 65f0f91..ca7f71a 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) < 0x10000
+#if (_THREAD_SIZE - 32) < 0x8000
 	PTR_ADDIU	t0, $28, _THREAD_SIZE - 32
 #else
 	PTR_LI		t0, _THREAD_SIZE - 32
-- 
1.4.2.4


