From e067776510283e97a02fdb69f4d31594f7bb02c7 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sun, 21 Aug 2022 22:27:18 +0200 Subject: [PATCH] ZealBooter: memmove() -> memcpy() --- zealbooter/zealbooter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zealbooter/zealbooter.c b/zealbooter/zealbooter.c index 02993528..0aeddd48 100644 --- a/zealbooter/zealbooter.c +++ b/zealbooter/zealbooter.c @@ -265,8 +265,8 @@ void _start(void) { uintptr_t boot_stack = ALIGN_UP(final_address + kernel->size + trampoline_size, 16) + boot_stack_size; - memmove(trampoline_phys, trampoline, trampoline_size); - memmove((void *)final_address, CKernel, kernel->size); + memcpy(trampoline_phys, trampoline, trampoline_size); + memcpy((void *)final_address, CKernel, kernel->size); asm volatile ( "mov %5, %%rsp;"