ZealBooter: memmove() -> memcpy()

This commit is contained in:
mintsuki 2022-08-21 22:27:18 +02:00
parent 375a487087
commit e067776510

View file

@ -265,8 +265,8 @@ void _start(void) {
uintptr_t boot_stack = ALIGN_UP(final_address + kernel->size + trampoline_size, 16) + boot_stack_size; uintptr_t boot_stack = ALIGN_UP(final_address + kernel->size + trampoline_size, 16) + boot_stack_size;
memmove(trampoline_phys, trampoline, trampoline_size); memcpy(trampoline_phys, trampoline, trampoline_size);
memmove((void *)final_address, CKernel, kernel->size); memcpy((void *)final_address, CKernel, kernel->size);
asm volatile ( asm volatile (
"mov %5, %%rsp;" "mov %5, %%rsp;"