From: Mike Frysinger Date: Fri, 15 Feb 2008 02:29:39 -0500 Subject: [U-Boot-Users] [PATCH] Add call command on PPC In-Reply-To: <20080215082159.13040916@dhcp-252-066.norway.atmel.com> References: <200802150208.24076.vapier@gentoo.org> <20080215082159.13040916@dhcp-252-066.norway.atmel.com> Message-ID: <200802150229.40045.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 15 February 2008, Haavard Skinnemoen wrote: > Mike Frysinger wrote: > > > if someone can tell me what the number of args are for each arch we > > > can see about providing this everywhere. > > > > are you sure you actually need to worry about such things ? i'm pretty > > sure any relevant architecture says that the first X arguments go via > > registers and the rest go on the stack. let the compiler worry about the > > exact value for X. > > I guess the real question is whether it's acceptable to pass arguments > on the stack to such subprograms. If the answer is yes, why not simply > use varargs? if the goal is to keep things in registers, "call" and its description are way too vague. the description makes me think this is meant to be a "go" for functions. > If the answer is no: avr32 can pass up to 5 arguments through registers. x86 does 0 while Blackfin does 3. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20080215/90d02255/attachment.pgp