]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
global_data.h: Change ram_top type to phys_addr_t
authorBin Meng <bin.meng@windriver.com>
Sun, 31 Jan 2021 12:35:59 +0000 (20:35 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
It's possible to have ram_top above 4 GiB in a 32-bit system, hence
we need to declare ram_top as `phys_addr_t`.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/asm-generic/global_data.h

index b6f707e97e5db7ad73721afb937467d9809a8af8..998beb017601665c42efeb6dcce24037326a4db9 100644 (file)
@@ -147,7 +147,7 @@ struct global_data {
        /**
         * @ram_top: top address of RAM used by U-Boot
         */
-       unsigned long ram_top;
+       phys_addr_t ram_top;
        /**
         * @relocaddr: start address of U-Boot in RAM
         *