Skip to contentSkip to conversation

Fix resume for 64k page size (#2).

PATCH New [email protected] 1 participant 1 message Jul 10, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix resume for 64k page size (#2).

From: Peter Watkins <[email protected]>

Fixup according to Thiemo and Maciej's comments.

---
 arch/mips/kernel/r4k_switch.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/mips/kernel/r4k_switch.S +1 -1
index 65f0f91..ca7f71a 100644
@@ -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
Signature · 1 line
1.4.2.4