From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Fri, 12 Nov 2010 10:56:02 +0100 Subject: [U-Boot] [PATCH] arm: add 8-byte alignment for ABI compliance before board_init_f In-Reply-To: <4CDD0D1F.7010805@gmail.com> References: <1289544835-24425-1-git-send-email-hs@denx.de> <4CDCE769.8080209@emk-elektronik.de> <20101112085013.62415193@gemini.denx.de> <4CDD0D1F.7010805@gmail.com> Message-ID: <20101112095602.5929D193@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 Graeme Russ, In message <4CDD0D1F.7010805@gmail.com> you wrote: > > > Passing gd as parameter makes no sense, thoug, as it's global data and > > we reserve a register to store it's address, so it can always be used > > with minimal overhead. > > Which is a really nice idea if you have a register to spare. Unfortunately, > x86 does not have this luxury, and the only way I can get gd (and as a > consequence upper memory bound for relocation) is to allocate it in > assembler and pass to C as a function argument Agreed - x86 has always it's own set of limitations. 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 In the pitiful, multipage, connection-boxed form to which the flow- chart has today been elaborated, it has proved to be useless as a design tool -- programmers draw flowcharts after, not before, writing the programs they describe. - Fred Brooks, Jr.