Skip to content

Commit

Permalink
Properly recover from shorter read.
Browse files Browse the repository at this point in the history
(cherry picked from commit 6622141)
  • Loading branch information
H.J. Lu authored and Petr Baudis committed Nov 20, 2009
1 parent 1bc1954 commit 8d7c09b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2009-11-18 H.J. Lu <hongjiu.lu@intel.com>

[BZ #10162]
* sysdeps/ia64/memchr.S: Don't use a simple loop on data shorter
than software pipeline. Properly recover from shorter read.

2009-11-16 Jakub Jelinek <jakub@redhat.com>

* sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range):
Expand Down
11 changes: 10 additions & 1 deletion sysdeps/ia64/memchr.S
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,16 @@ ENTRY(__memchr)
br.ret.sptk.many b0

.recovery:
adds ret0 = -((MEMLAT + 1) * 8), ret0;;
#if MEMLAT != 6
# error "MEMLAT must be 6!"
#endif
(p[MEMLAT-6]) add ret0 = -8, ret0;;
(p[MEMLAT-5]) add ret0 = -8, ret0;;
(p[MEMLAT-4]) add ret0 = -8, ret0;;
(p[MEMLAT-3]) add ret0 = -8, ret0;;
(p[MEMLAT-2]) add ret0 = -8, ret0;;
(p[MEMLAT-1]) add ret0 = -8, ret0;;
(p[MEMLAT]) add ret0 = -8, ret0;;
(p[MEMLAT+1]) add ret0 = -8, ret0;;
(p[MEMLAT+2]) add ret0 = -8, ret0;;
.l4:
Expand Down

0 comments on commit 8d7c09b

Please sign in to comment.