memcpy regression

David Laight David.Laight at ACULAB.COM
Mon Sep 7 20:59:01 AEST 2015

From: Michal Sojka
> >> I think GCC uses memcpy() in well known situations like initialising
> >> structures or copying structures.
> >> Shouldn't we just avoid this kind of actions in the very few early init
> >> functions ?
> > Which are the "very few" early init functions? Can you make a list, for 32-bit
> > and 64-bit? And can we keep it updated over time and not introduce regressions?
> >
> If the code that runs without caches is concentrated in few files, we
> may either modify the buildsystem to check whether there is a call to
> memcpy from these files (e.g. by using nm) or these files can be
> "prelinked" with special version of memcpy that doesn't require caches.
> Would any of these be acceptable?

What about run-time patching memcpy() after the caches are initialised?


More information about the Linuxppc-dev mailing list