[U-Boot-Users] [PATCH] Add call command on PPC
Kumar Gala
galak at kernel.crashing.org
Fri Feb 15 09:14:00 CET 2008
On Feb 15, 2008, at 1:21 AM, Haavard Skinnemoen wrote:
> On Fri, 15 Feb 2008 02:08:23 -0500
> Mike Frysinger <vapier at gentoo.org> 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?
for my purposes the answer is no.
>
> If the answer is no: avr32 can pass up to 5 arguments through
> registers.
thanks
- k
More information about the U-Boot
mailing list