memcpy alignment

Catalin Marinas catalin.marinas at arm.com
Tue Dec 15 01:34:07 PST 2015


On Mon, Dec 14, 2015 at 11:11:02PM -0500, Jon Masters wrote:
> What's supposed to happen if the natural alignment of the pointers dst
> and src is not the same? We don't seem to handle that case today, and
> instead will base our access data type on the source alignment only.

The hardware takes care of the other one. The memcpy behaviour in the
kernel is the same as the glibc one (the Cortex Strings library).

-- 
Catalin



More information about the linux-arm-kernel mailing list