Skip to content

Commit

Permalink
[IA64] __copy_user breaks on unaligned src
Browse files Browse the repository at this point in the history
memcpy_mck.S::__copy_user breaks in the prefetch code under these conditions :-

* src is unaligned and
* dst is near the end of a page and
* the page after dst is unmapped.

Signed-off-by: Keith Owens <[email protected]>
Signed-off-by: Tony Luck <[email protected]>
  • Loading branch information
Keith Owens authored and aegl committed Apr 25, 2005
1 parent f0a8d3c commit 6118ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/lib/memcpy_mck.S
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ EK(.ex_handler, (p[D]) st8 [dst1] = t15, 4*8)
add src_pre_mem=0,src0 // prefetch src pointer
add dst_pre_mem=0,dst0 // prefetch dest pointer
and src0=-8,src0 // 1st src pointer
(p7) mov ar.lc = r21
(p7) mov ar.lc = cnt
(p8) mov ar.lc = r0
;;
TEXT_ALIGN(32)
Expand Down

0 comments on commit 6118ec8

Please sign in to comment.