]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: use byteshift unaligned access helper
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 3 Nov 2021 02:04:09 +0000 (11:04 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 7 Nov 2021 17:36:55 +0000 (18:36 +0100)
commitc51cb31175ff72514e7c414b42634f2c8d661bb2
tree78d18784419b44ae18a6a443229073dc580f8b00
parent6f0879e50750690d5cc40529e2cb6567fcf2d592
efi_loader: use byteshift unaligned access helper

Calling unaligned/access-ok.h version of put_unaligned_le64()
causes data abort in arm 32-bit QEMU.

The similar issue also occurs in linux kernel,
unaligned/access-ok.h is no longer used in linux kernel[1].

This commit uses the unaligned/be_byteshift.h and
unaligned/le_byteshift.h helper instead of unaligned/access-ok.h.

[1]https://lore.kernel.org/all/20210507220813.365382-8-arnd@kernel.org/

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c