Skip to content
Snippets Groups Projects
Commit 37f93f7b authored by Daniel Schwierzeck's avatar Daniel Schwierzeck
Browse files

MIPS: fix types u64 and __u64 to unsigned long long


Linux MIPS uses asm-generic/int-ll64.h in asm/types.h.
Thus u64 and __u64 are defined as unsigned long long. Port this
over to U-Boot.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
parent eeb72e67
No related merge requests found
...@@ -27,18 +27,12 @@ typedef unsigned short __u16; ...@@ -27,18 +27,12 @@ typedef unsigned short __u16;
typedef __signed__ int __s32; typedef __signed__ int __s32;
typedef unsigned int __u32; typedef unsigned int __u32;
#if (_MIPS_SZLONG == 64)
typedef __signed__ long __s64;
typedef unsigned long __u64;
#else
#if defined(__GNUC__) #if defined(__GNUC__)
__extension__ typedef __signed__ long long __s64; __extension__ typedef __signed__ long long __s64;
__extension__ typedef unsigned long long __u64; __extension__ typedef unsigned long long __u64;
#endif #else
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif #endif
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
...@@ -61,19 +55,8 @@ typedef unsigned short u16; ...@@ -61,19 +55,8 @@ typedef unsigned short u16;
typedef __signed int s32; typedef __signed int s32;
typedef unsigned int u32; typedef unsigned int u32;
#if (_MIPS_SZLONG == 64)
typedef __signed__ long s64;
typedef unsigned long u64;
#else
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long s64; typedef __signed__ long long s64;
typedef unsigned long long u64; typedef unsigned long long u64;
#endif
#endif
#if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \ #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \
|| defined(CONFIG_64BIT) || defined(CONFIG_64BIT)
......
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