From: Wolfgang Denk Date: Fri, 15 Feb 2008 09:42:36 +0100 Subject: [U-Boot-Users] [PATCH] Add call command on PPC In-Reply-To: Your message of "Thu, 14 Feb 2008 23:42:29 CST." Message-ID: <20080215084236.91B6324D11@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 In message you wrote: > The call command tries to mimic a function call in that the 'arg's to > the command are passed in registers according to the PPC ABI. > > The prototype that call mimics is some variation of the following > depending on how many arguments are passed to the command: > > void func(void) > void func(unsigned long r3) > void func(unsigned long r3, unsigned long r4) > ... > void func(unsigned long r3, unsigned long r4, ... unsigned long r10) > > The maximum number of 'arg's is 8. There are no arguments passed on > a stack, no floating point or vector arguments. Sorry, but this looks still broken to me. 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 A Puritan is someone who is deathly afraid that someone, somewhere, is having fun.