sh: Explicit alignment for PAGE_SIZE in copy/clear_page().
authorPaul Mundt <lethal@linux-sh.org>
Fri, 30 Nov 2007 07:34:26 +0000 (16:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:58 +0000 (13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/lib/clear_page.S
arch/sh/lib/copy_page.S

index 36d44ef2b8a265e872eeacc7b685e0aa166c8070..3539123fe5174b29fb95c1b64fcc3e46a3e688a3 100644 (file)
@@ -50,6 +50,8 @@ ENTRY(clear_page)
        !
        rts
         nop
+
+       .balign 4
 .Llimit:       .long   (PAGE_SIZE-28)
 
 ENTRY(__clear_user)
index b879545fa28b2245335aae1833598b4fb9fe95b7..e002b91c87526bf506757b0e9684fcb25d7ceee5 100644 (file)
@@ -68,8 +68,9 @@ ENTRY(copy_page)
        rts
         nop
 
-       .align 2
+       .balign 4
 .Lpsz: .long   PAGE_SIZE
+
 /*
  * __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n);
  * Return the number of bytes NOT copied