| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH] MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Sun, 24 Apr 2011 05:56:59 +0800 |
| Cc: | ralf@linux-mips.org, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=KQqnBW5MpAvzVyAes1a/IXzomYv59NHyU2apFqBJvBI=; b=IhlmDgdQdtGlAfnxWWYN3OEY5PiSPzl0M42d87t1Djxh5ottiXE16R0wLnStry3cp8 MQGdVGgZpcp3JYWJDdyQJ609aNxqwgEBbHPA3BLyapYvjZMo1Sd0Cnxj4TL9miC5XlUG wMx9hYp4i+AnuzkBpaharFDduYzfVT3M7Dg/s= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=wVw2fDYmKMWLrfbZ9dUzDYPXAgKJyxTWYz0BSN2nYlcD8VbzwwW71S1dVeoobHypZN HExWULlC8e4xxNcgGsHv5sGvJbwwYwCBPQxv/Pjz0X+Dv3bnkaO/UpVeAEKjb5AYv1zl iws3woDEfbmSJZNGWOrBd5QsnITq7hI4Cl0Cc= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
PAGE_SIZE >= 64kb (1 << 16) is too big to be the immediate of the
addiu/daddiu instruction, so, use addu/daddu instruction instead.
The following compiling error is fixed:
AS arch/mips/power/hibernate.o
arch/mips/power/hibernate.S: Assembler messages:
arch/mips/power/hibernate.S:38: Error: expression out of range
make[2]: *** [arch/mips/power/hibernate.o] Error 1
make[1]: *** [arch/mips/power] Error 2
Reported-by: Roman Mamedov <rm@romanrm.ru>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
arch/mips/power/hibernate.S | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/power/hibernate.S b/arch/mips/power/hibernate.S
index dbb5c7b..f8a751c 100644
--- a/arch/mips/power/hibernate.S
+++ b/arch/mips/power/hibernate.S
@@ -35,7 +35,7 @@ LEAF(swsusp_arch_resume)
0:
PTR_L t1, PBE_ADDRESS(t0) /* source */
PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */
- PTR_ADDIU t3, t1, PAGE_SIZE
+ PTR_ADDU t3, t1, PAGE_SIZE
1:
REG_L t8, (t1)
REG_S t8, (t2)
--
1.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 7/8] USB support for XLS platforms., Manuel Lauss |
|---|---|
| Next by Date: | Re: [PATCH 7/8] USB support for XLS platforms., Jayachandran C. |
| Previous by Thread: | [PATCH 0/8] Support for Netlogic XLR/XLS processors, Jayachandran C |
| Next by Thread: | [PATCH] MIPS: lantiq: allow WDT to read reset cause bit from the RCU registers, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |