Skip to content
Snippets Groups Projects
Commit db357236 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: Fix up type sizes for 64-bit


Adjust types as needed to support 64-bit compilation.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 4b57414a
No related branches found
No related tags found
No related merge requests found
......@@ -16,8 +16,13 @@ typedef int __kernel_pid_t;
typedef unsigned short __kernel_ipc_pid_t;
typedef unsigned short __kernel_uid_t;
typedef unsigned short __kernel_gid_t;
#if CONFIG_IS_ENABLED(X86_64)
typedef unsigned long __kernel_size_t;
typedef long __kernel_ssize_t;
#else
typedef unsigned int __kernel_size_t;
typedef int __kernel_ssize_t;
#endif
typedef int __kernel_ptrdiff_t;
typedef long __kernel_time_t;
typedef long __kernel_suseconds_t;
......
......@@ -44,7 +44,12 @@ typedef __INT64_TYPE__ s64;
typedef __UINT64_TYPE__ u64;
#endif
#if CONFIG_IS_ENABLED(X86_64)
#define BITS_PER_LONG 64
#else
#define BITS_PER_LONG 32
#endif
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment