mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-27 07:46:33 +00:00
ZealBooter: memmove() -> memcpy()
This commit is contained in:
parent
375a487087
commit
e067776510
1 changed files with 2 additions and 2 deletions
|
@ -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;"
|
||||||
|
|
Loading…
Reference in a new issue