mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
sandbox: Use correct phys_{addr, size}_t for PHYS_64BIT=y
If 64-bit physical addresses support is enabled, make sure the sandox defines the correct types for phys_addr_t and phys_size_t. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
1701892790
commit
0c425ae4b7
1 changed files with 6 additions and 6 deletions
|
@ -18,21 +18,21 @@ typedef unsigned short umode_t;
|
||||||
/*
|
/*
|
||||||
* Number of bits in a C 'long' on this architecture.
|
* Number of bits in a C 'long' on this architecture.
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_PHYS64
|
#ifdef CONFIG_PHYS_64BIT
|
||||||
#define BITS_PER_LONG 64
|
#define BITS_PER_LONG 64
|
||||||
#else /* CONFIG_PHYS64 */
|
#else /* CONFIG_PHYS_64BIT */
|
||||||
#define BITS_PER_LONG 32
|
#define BITS_PER_LONG 32
|
||||||
#endif /* CONFIG_PHYS64 */
|
#endif /* CONFIG_PHYS_64BIT */
|
||||||
|
|
||||||
#ifdef CONFIG_PHYS64
|
#ifdef CONFIG_PHYS_64BIT
|
||||||
typedef unsigned long long dma_addr_t;
|
typedef unsigned long long dma_addr_t;
|
||||||
typedef u64 phys_addr_t;
|
typedef u64 phys_addr_t;
|
||||||
typedef u64 phys_size_t;
|
typedef u64 phys_size_t;
|
||||||
#else /* CONFIG_PHYS64 */
|
#else /* CONFIG_PHYS_64BIT */
|
||||||
typedef unsigned long dma_addr_t;
|
typedef unsigned long dma_addr_t;
|
||||||
typedef u32 phys_addr_t;
|
typedef u32 phys_addr_t;
|
||||||
typedef u32 phys_size_t;
|
typedef u32 phys_size_t;
|
||||||
#endif /* CONFIG_PHYS64 */
|
#endif /* CONFIG_PHYS_64BIT */
|
||||||
|
|
||||||
#endif /* __KERNEL__ */
|
#endif /* __KERNEL__ */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue