]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: Change phys_addr_t and phys_size_t to 64-bit
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:36:04 +0000 (20:36 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
phys_addr_t and phys_size_t are currently defined as `unsigned long`,
but RV32 supports 34-bit physical address, hence both phys_addr_t and
phys_size_t should be defined to 64-bit using `unsigned long long`.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
arch/riscv/include/asm/types.h

index b800b2d221bf8cb4aa2fa135cf8722b14e97cf9a..49f7a5d6b3a38fc03ac2da058354c19f95acbb3e 100644 (file)
@@ -35,8 +35,8 @@ typedef u64 dma_addr_t;
 typedef u32 dma_addr_t;
 #endif
 
-typedef unsigned long phys_addr_t;
-typedef unsigned long phys_size_t;
+typedef unsigned long long phys_addr_t;
+typedef unsigned long long phys_size_t;
 
 #endif /* __KERNEL__ */