From: Wolfgang Denk Date: Mon, 08 Sep 2008 16:10:50 +0200 Subject: [U-Boot] [PATCH][for 1.3.5] Fix handling of mem reserves for ramdisk In-Reply-To: <6E892604-9B2A-4338-8DF7-C58688FC5A94@kernel.crashing.org> References: <48C21BBE.3080601@denx.de> <6E892604-9B2A-4338-8DF7-C58688FC5A94@kernel.crashing.org> Message-ID: <20080908141050.B5D76248A5@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Kumar Gala, In message <6E892604-9B2A-4338-8DF7-C58688FC5A94@kernel.crashing.org> you wrote: > > The reason we had the code before was to try and make sure the size of > the fdt was as close to its final size as possible before we dealt > with the ramdisk relocation (boot_ramdisk_high()) that included the > properties and the memreserve in the fdt. Step's a)-c) are there to > make sure the size is correct. Well, but the size needed for this should be a constant, so it should be sufficioent to determine it once and then use a hard coded constant; eventually add some padding. Doing this in runtime is a waste of resources (flash memory, RAM, and time - not to mention human time for maintaining the code). 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 Let the programmers be many and the managers few -- then all will be productive. -- Geoffrey James, "The Tao of Programming"