• 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
..
acpi Loading commit data...
arch-baytrail Loading commit data...
arch-broadwell Loading commit data...
arch-coreboot Loading commit data...
arch-ivybridge Loading commit data...
arch-qemu Loading commit data...
arch-quark Loading commit data...
arch-queensbay Loading commit data...
fsp Loading commit data...
video Loading commit data...
acpi_table.h Loading commit data...
atomic.h Loading commit data...
bitops.h Loading commit data...
bootm.h Loading commit data...
bootparam.h Loading commit data...
byteorder.h Loading commit data...
cache.h Loading commit data...
config.h Loading commit data...
control_regs.h Loading commit data...
coreboot_tables.h Loading commit data...
cpu.h Loading commit data...
cpu_common.h Loading commit data...
cpu_x86.h Loading commit data...
e820.h Loading commit data...
elf.h Loading commit data...
errno.h Loading commit data...
global_data.h Loading commit data...
gpio.h Loading commit data...
i8254.h Loading commit data...
i8259.h Loading commit data...
ibmpc.h Loading commit data...
init_helpers.h Loading commit data...
intel_regs.h Loading commit data...
interrupt.h Loading commit data...
io.h Loading commit data...
ioapic.h Loading commit data...
ioctl.h Loading commit data...
irq.h Loading commit data...
ist.h Loading commit data...
lapic.h Loading commit data...
linkage.h Loading commit data...
lpc_common.h Loading commit data...
me_common.h Loading commit data...
microcode.h Loading commit data...
mp.h Loading commit data...
mpspec.h Loading commit data...
mrc_common.h Loading commit data...
mrccache.h Loading commit data...
msr-index.h Loading commit data...
msr.h Loading commit data...
mtrr.h Loading commit data...
pch_common.h Loading commit data...
pci.h Loading commit data...
pirq_routing.h Loading commit data...
pnp_def.h Loading commit data...
posix_types.h Loading commit data...
post.h Loading commit data...
processor-flags.h Loading commit data...
processor.h Loading commit data...
ptrace.h Loading commit data...
relocate.h Loading commit data...
report_platform.h Loading commit data...
sections.h Loading commit data...
sfi.h Loading commit data...
sipi.h Loading commit data...
smbios.h Loading commit data...
speedstep.h Loading commit data...
string.h Loading commit data...
tables.h Loading commit data...
turbo.h Loading commit data...
types.h Loading commit data...
u-boot-x86.h Loading commit data...
u-boot.h Loading commit data...
unaligned.h Loading commit data...
zimage.h Loading commit data...