git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[IA64] make exception handler in copy_user more robust
[pandora-kernel.git]
/
arch
/
ia64
/
lib
/
memcpy_mck.S
diff --git
a/arch/ia64/lib/memcpy_mck.S
b/arch/ia64/lib/memcpy_mck.S
index
6f308e6
..
46c9331
100644
(file)
--- a/
arch/ia64/lib/memcpy_mck.S
+++ b/
arch/ia64/lib/memcpy_mck.S
@@
-625,8
+625,11
@@
EK(.ex_handler, (p17) st8 [dst1]=r39,8); \
clrrrb
;;
alloc saved_pfs_stack=ar.pfs,3,3,3,0
+ cmp.lt p8,p0=A,r0
sub B = dst0, saved_in0 // how many byte copied so far
;;
+(p8) mov A = 0; // A shouldn't be negative, cap it
+ ;;
sub C = A, B
sub D = saved_in2, A
;;