summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-04 12:33:56 -0600
committerSimon Glass <sjg@chromium.org>2015-08-05 08:44:07 -0600
commit96a8d409a75af99ac7a9a9ba707d544f9cf44fc0 (patch)
tree42d2df0ab57c55ce9f0a191b97fb88a7858b81ff /arch/x86/include/asm
parent6f92ed8f1abfe94ee1c96c83c21f4092bb04ff63 (diff)
efi: Add 64-bit payload support
Most EFI implementations use 64-bit. Add a way to build U-Boot as a 64-bit EFI payload. The payload unpacks a (32-bit) U-Boot and starts it. This can be enabled for x86 boards at present. Signed-off-by: Simon Glass <sjg@chromium.org> Improvements to how the payload is built: Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r--arch/x86/include/asm/types.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index e272c90eb7..766617f9aa 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -44,8 +44,11 @@ typedef __INT64_TYPE__ s64;
typedef __UINT64_TYPE__ u64;
#endif
+#ifdef CONFIG_EFI_STUB_64BIT
+#define BITS_PER_LONG 64
+#else
#define BITS_PER_LONG 32
-
+#endif
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;