From: Roland McGrath Date: Tue, 21 Feb 1995 20:27:45 +0000 (+0000) Subject: . X-Git-Tag: upstream/2.30~30153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=caa8cd20fd1ef25a3989bb68ee2f4ffee78d8456;p=external%2Fglibc.git . --- diff --git a/.cvsignore b/.cvsignore index f0db6e6..09299f7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -8,3 +8,5 @@ configparms sun4 i386 i386-gnuelf hp300-netbsd hp300 ieeetest hppa-sysdeps regex + +gpl2lgpl.sed diff --git a/sysdeps/generic/pagecopy.h b/sysdeps/generic/pagecopy.h index 07202a3..66e1ac3 100644 --- a/sysdeps/generic/pagecopy.h +++ b/sysdeps/generic/pagecopy.h @@ -42,25 +42,26 @@ Cambridge, MA 02139, USA. */ #if PAGE_COPY_THRESHOLD +#include + #define PAGE_COPY_FWD_MAYBE(dstp, srcp, nbytes_left, nbytes) \ do \ { \ if ((nbytes) >= PAGE_COPY_THRESHOLD && \ - PAGE_OFFSET (dstp) == PAGE_OFFSET (srcp)) \ + PAGE_OFFSET ((dstp) - (srcp)) == 0) \ { \ /* The amount to copy is past the threshold for copying \ pages virtually with kernel VM operations, and the \ source and destination addresses have the same alignment. */ \ - size_t nbytes_before = PAGE_OFFSET (PAGE_SIZE - PAGE_OFFSET (dstp));\ + size_t nbytes_before = PAGE_OFFSET (-(dstp)); \ if (nbytes_before != 0) \ { \ /* First copy the words before the first page boundary. */ \ WORD_COPY_FWD (dstp, srcp, nbytes_left, nbytes_before); \ - nbytes_before -= nbytes_left; \ + assert (nbytes_left == 0); \ nbytes -= nbytes_before; \ } \ - if (nbytes_before == 0) \ - PAGE_COPY_FWD (dstp, srcp, nbytes_left, nbytes); \ + PAGE_COPY_FWD (dstp, srcp, nbytes_left, nbytes); \ } \ } while (0)