• Bin Meng's avatar
    x86: efi: Fix EFI 64-bit payload build warnings · 3e6cc35f
    Bin Meng authored
    There are lots of warnings when building EFI 64-bit payload.
    
    include/asm-generic/bitops/__fls.h:17:2:
      warning: left shift count >= width of type
      	if (!(word & (~0ul << 32))) {
    			^
    
    In fact, U-Boot itself as EFI payload is running in 32-bit mode.
    So BITS_PER_LONG needs to still be 32, but EFI status codes are
    64-bit when booting from 64-bit EFI. Introduce EFI_BITS_PER_LONG
    to bridge those status codes with U-Boot's BITS_PER_LONG.
    Signed-off-by: 's avatarBin Meng <bmeng.cn@gmail.com>
    Reviewed-by: 's avatarSimon Glass <sjg@chromium.org>
    3e6cc35f
Name
Last commit
Last update
Licenses Loading commit data...
api Loading commit data...
arch Loading commit data...
board Loading commit data...
cmd Loading commit data...
common Loading commit data...
configs Loading commit data...
disk Loading commit data...
doc Loading commit data...
drivers Loading commit data...
dts Loading commit data...
examples Loading commit data...
fs Loading commit data...
include Loading commit data...
lib Loading commit data...
net Loading commit data...
post Loading commit data...
scripts Loading commit data...
test Loading commit data...
tools Loading commit data...
.checkpatch.conf Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
config.mk Loading commit data...
snapshot.commit Loading commit data...