Skip to content

Commit

Permalink
sh: Explicit alignment for PAGE_SIZE in copy/clear_page().
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Jan 28, 2008
1 parent 1efe4ce commit 325df7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions arch/sh/lib/clear_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ ENTRY(clear_page)
!
rts
nop

.balign 4
.Llimit: .long (PAGE_SIZE-28)

ENTRY(__clear_user)
Expand Down
3 changes: 2 additions & 1 deletion arch/sh/lib/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 325df7f

Please sign in to comment.