From: Scott Wood Date: Thu, 27 May 2010 14:46:19 -0500 Subject: [U-Boot] [PATCH v2] [RFC] memsize.c: adapt get_ram_size() for address spaces >32 bit In-Reply-To: <1274984188-10200-1-git-send-email-wd@denx.de> References: <1274983869-9173-1-git-send-email-wd@denx.de> <1274984188-10200-1-git-send-email-wd@denx.de> Message-ID: <20100527194618.GC5915@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, May 27, 2010 at 08:16:28PM +0200, Wolfgang Denk wrote: > get_ram_size() used to use "long" data types for addresses and data, > which limited it to systems with less than 4 GiB memory. As more and > more systems are coming up with bigger memory resources, we adapt the > code to use phys_addr_t / phys_size_t data types instead. This cannot work as is. The only systems where this makes a difference are where physical addresses are larger than virtual pointers -- but you try to shove the 64-bit physical offset into a 32-bit pointer. You need to create temporary mappings, if you really want to do this. -Scott