[U-Boot] [RFC] ARM: U-boot and 2 GiB of ram with get_ram_size only being long
Wolfgang Denk
wd at denx.de
Mon Oct 21 21:44:36 CEST 2013
Dear Scott Wood,
In message <1382138723.7979.928.camel at snotra.buserror.net> you wrote:
>
> And the one 64-bit environment that we're about to have in U-Boot
> (armv8) has discontiguous memory, which is another case where
> get_ram_size() won't work.
get_ram_size() is supposed to be run per memory bank. If you have
discontiguous memory, then you probably have several memory banks that
can be sized separately?
> BTW, shouldn't get_ram_size restore the original data in the final
> "return (maxsize)" case? I know, patches welcome. :-)
Yes, get_ram_size() is non-destructive (at least in the no-error
case; otherwise things like PRAM would not work).
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I think there's a world market for about five computers.
-- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943
More information about the U-Boot
mailing list