All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb
@ 2011-04-23 21:56 Wu Zhangjin
  2011-05-05 11:05 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Wu Zhangjin @ 2011-04-23 21:56 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf, Wu Zhangjin

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb
  2011-04-23 21:56 [PATCH] MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb Wu Zhangjin
@ 2011-05-05 11:05 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2011-05-05 11:05 UTC (permalink / raw)
  To: Wu Zhangjin; +Cc: linux-mips

Thanks, applied!

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-05 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-23 21:56 [PATCH] MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb Wu Zhangjin
2011-05-05 11:05 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.