Skip to content

Commit

Permalink
sh: Fix page size alignment in __copy_user_page().
Browse files Browse the repository at this point in the history
SH-3 comes up with the PAGE_SIZE on a misaligned boundary:

arch/sh/mm/copy_page.S: Assembler messages:
arch/sh/mm/copy_page.S:132: Warning: misaligned data

fix it up with explicit alignment.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed May 21, 2007
1 parent 27641de commit 0d08b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sh/mm/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ ENTRY(__copy_user_page)
rts
nop
#endif
.align 2
.Lpsz: .long PAGE_SIZE
/*
* __kernel_size_t __copy_user(void *to, const void *from, __kernel_size_t n);
Expand Down

0 comments on commit 0d08b5f

Please sign in to comment.