mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
efi_loader: fix freestanding memmove()
For EFI binaries we have to provide an implementation of memmove() in efi_freestanding.c. Before this patch the memmove() function was copying in the wrong direction. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
7aeceffb25
commit
72291a9d83
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void *memmove(void *dest, const void *src, size_t n)
|
||||||
u8 *d = dest;
|
u8 *d = dest;
|
||||||
const u8 *s = src;
|
const u8 *s = src;
|
||||||
|
|
||||||
if (d >= s) {
|
if (d <= s) {
|
||||||
for (; n; --n)
|
for (; n; --n)
|
||||||
*d++ = *s++;
|
*d++ = *s++;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue