From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 03 Nov 2010 13:08:26 +0100 Subject: [U-Boot] [RFC] arm926ejs: fix jump to RAM nand_boot In-Reply-To: References: <20101031203243.478E9EA47F@gemini.denx.de> <20101031181244.419EDEA47F@gemini.denx.de> <4CCDB78D.506@ahsoftware.de> <20101031190136.64829EA47F@gemini.denx.de> <4CCDBE71.1010805@free.fr> <20101031192243.7AF531522C0@gemini.denx.de> <4CCDC625.3010209@free.fr> <20101031195941.5AB961522C0@gemini.denx.de> <4CCDD02D.2050304@free.fr> <1288560046-6458-1-git-send-email-albert.aribaud@free.fr> <4CCDED8D.0@ahsoftware.de> <4CCDF5FC.4060704@free.fr> <20101101091515.C8BDD1522C0@gemini.denx.de> <4CCEF2E4.5080003@free.fr> <20101101192318.06C231522C0@gemini.denx.de> <4CCFAFE4.3000600@denx.de> <4CCFD27E.3080500@emk-elektronik.de> <4CCFD5C4.6040706@free.fr> <4CCFDB14.3060809@emk-elektronik.de> <20101103080236.0D1761524F4@gemini.denx.de> <20101103112759.ED0301522C0@gemini.denx.de> Message-ID: <4CD150BA.7040902@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 03/11/2010 13:03, V, Aneesh a ?crit : > Just curious. Why don't we allocate memory for such needs below the > u-boot (lower address) like we do for malloc area and stack. This way > the location where u-boot is relocated will only depend on the SDRAM > size and size of u-boot itself, right? My guess is that the same memory will be allocated by the OS after u-boot, and allocating at the same location in both occasions allows for things like flicker-free boot splashes and such. And if you allocate this below u-boot, you end up with a split memory map with some allocated space in the middle of useable OS or user space. So we allocate that at top of RAM, and later on, Linux can use all the memory below as a single contiguous area. > Best regards, > Aneesh Amicalement, -- Albert.