coreboot-kgpe-d16/payloads
Julius Werner ae096be00c libpayload: memmove: Don't make expectations of architecture memcpy
default_memmove() calls memcpy() when (src > dst). This is safe for the
default_memcpy() implementation, but just calling memcpy() may invoke an
architecture-specific implementation. Architectures are free to
implement memcpy() however they want and may assume that buffers don't
overlap in either direction. So while this happens to work for all
current architecture implementations of memcpy(), it's safer not to rely
on that and only rely on the known implementation of default_memcpy()
for the forwards-overlapping case.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I7ece4ce9e6622a36612bfade3deb62f351877789
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44691
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2020-08-24 09:24:06 +00:00
..
coreinfo libpayload: Cache physical location of CBMEM entries 2020-08-24 09:13:30 +00:00
external payloads/seabios: Update stable version to 1.14.0 2020-08-17 06:37:57 +00:00
libpayload libpayload: memmove: Don't make expectations of architecture memcpy 2020-08-24 09:24:06 +00:00
linuxcheck treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
nvramcui payloads/nvramcui: Fix `make clean` 2020-08-18 10:24:01 +00:00
Kconfig arch/arm: Enable FIT payloads 2020-08-19 07:16:59 +00:00
Makefile.inc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00