efi: libstub: Clone memcmp() into the stub
authorArd Biesheuvel <ardb@kernel.org>
Tue, 11 Oct 2022 13:15:51 +0000 (15:15 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 9 Nov 2022 11:42:02 +0000 (12:42 +0100)
commit52dce39cd2786673969a12d1c94e0922d9208f83
treeb05c22bae7499c7f1f61430ba296a900bbea75bc
parentfa882a1389b2a6eaba8a0d5439dbd32537d0ecc5
efi: libstub: Clone memcmp() into the stub

We will no longer be able to call into the kernel image once we merge
the decompressor with the EFI stub, so we need our own implementation of
memcmp(). Let's add the one from lib/string.c and simplify it.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm64/kernel/image-vars.h
arch/loongarch/kernel/image-vars.h
arch/riscv/kernel/image-vars.h
drivers/firmware/efi/libstub/intrinsics.c
drivers/firmware/efi/libstub/zboot.c