This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] powerpc: Use generic memset for RTLD for ppc32/64
- From: Ulrich Drepper <drepper at gmail dot com>
- To: luisgpm at linux dot vnet dot ibm dot com
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 27 Sep 2010 22:58:43 -0400
- Subject: Re: [PATCH] powerpc: Use generic memset for RTLD for ppc32/64
- References: <1285607653.12736.111.camel@gargoyle>
On Mon, Sep 27, 2010 at 13:14, Luis Machado <luisgpm@linux.vnet.ibm.com> wrote:
> The usual cache line size for the POWER server processors is 128 bytes.
> PPCA2 has a different size, and thus we can't use our current generic
> memset code (powerpc/powerpc[32|64]/memset.S) as a base for RTLD's
> memset since it assumes cache-line size to be 128 bytes.
What does "can't use" mean?
memset mustn't exceed the buffer limits at either the low or high end
of the buffer. Therefore the cache line size can really only be used
for optimization purposes but not for functional changes. As opposed
to, say, memchr where we can overread the buffer if we disregard the
invalid bytes.