aboutsummaryrefslogtreecommitdiff
path: root/lib/efi
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-06-22 01:38:27 -0700
committerBin Meng <bmeng.cn@gmail.com>2018-06-24 08:56:04 +0800
commit5460fd076263a461442e4beb3215466536166026 (patch)
treef425583f067ddc31756da03742ae08b9ae63a692 /lib/efi
parent018664464628686d41f3d36e5428bb50d9094977 (diff)
downloadu-boot-5460fd076263a461442e4beb3215466536166026.zip
u-boot-5460fd076263a461442e4beb3215466536166026.tar.gz
u-boot-5460fd076263a461442e4beb3215466536166026.tar.bz2
x86: Change __kernel_size_t conditionals to use compiler provided defines
Since commit bb0bb91cf0aa ("efi_stub: Use efi_uintn_t"), EFI x86 64-bit payload does not work anymore. The call to GetMemoryMap() in efi_stub.c fails with return code EFI_INVALID_PARAMETER. Since the payload itself is still 32-bit U-Boot, efi_uintn_t gets wrongly interpreted as int, but it should actually be long in a 64-bit EFI environment. This changes the x86 __kernel_size_t conditionals to use compiler provided defines instead. That way we always adhere to the build environment we're in and the definitions adjust automatically. Fixes: bb0bb91cf0aa ("efi_stub: Use efi_uintn_t") Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi')
0 files changed, 0 insertions, 0 deletions