kernel_ldr: use unoptimized memcpy before mmu bringup (closes #1102)
Before the MMU is up, all reads/writes must be aligned; the optimized
memcpy implementation does not guarantee all reads/writes it performs
are aligned.

This commit splits the libc impl to be separate for kernel/kernel_ldr,
and so now only kernel will use the optimized impl. This is safe,
as the MMU is brought up before kernel begins executing.
1 parent a82914d commit 29358dc5931c1b7dd1442676dec6d91fe9e72c98
@Michael Scire Michael Scire authored on 2 Aug 2020
Showing 17 changed files
View
libraries/libmesosphere/source/libc/arch/arm64/asmdefs.h 100644 → 0
View
libraries/libmesosphere/source/libc/arch/arm64/memcmp.arch.arm64.s 100644 → 0
View
libraries/libmesosphere/source/libc/arch/arm64/memcpy.arch.arm64.s 100644 → 0
View
libraries/libmesosphere/source/libc/arch/arm64/memset.arch.arm64.s 100644 → 0
View
libraries/libmesosphere/source/libc/kern_libc_config.arch.arm64.h 100644 → 0
View
libraries/libmesosphere/source/libc/kern_libc_config.h 100644 → 0
View
libraries/libmesosphere/source/libc/kern_libc_generic.c 100644 → 0
View
mesosphere/kernel/source/libc/arch/arm64/asmdefs.h 0 → 100644
View
mesosphere/kernel/source/libc/arch/arm64/memcmp.arch.arm64.s 0 → 100644
View
mesosphere/kernel/source/libc/arch/arm64/memcpy.arch.arm64.s 0 → 100644
View
mesosphere/kernel/source/libc/arch/arm64/memset.arch.arm64.s 0 → 100644
View
mesosphere/kernel/source/libc/kern_libc_config.arch.arm64.h 0 → 100644
View
mesosphere/kernel/source/libc/kern_libc_config.h 0 → 100644
View
mesosphere/kernel/source/libc/kern_libc_generic.c 0 → 100644
View
mesosphere/kernel_ldr/source/libc/kern_libc_config.arch.arm64.h 0 → 100644
View
mesosphere/kernel_ldr/source/libc/kern_libc_config.h 0 → 100644
View
mesosphere/kernel_ldr/source/libc/kern_libc_generic.c 0 → 100644