On Feb 15, 2008, at 12:32 AM, Mike Frysinger wrote: > On Friday 15 February 2008, Kumar Gala wrote: >> On Feb 14, 2008, at 11:54 PM, Mike Frysinger wrote: >>> On Friday 15 February 2008, Kumar Gala wrote: >>>> --- /dev/null >>>> +++ b/lib_ppc/cmd_call.c >>> >>> there's nothing ppc specific about this >> >> I'm not familiar w/other architecture ABIs to say if that's true or >> not. Clearly the upper limit may vary based on the differences in >> the >> ABIs. > > if the code were written in assembly, i'd agree. you've written it > in pure C > though, so the compiler worries about the ABI. if your ABI has > different > semantics for function pointers than normal function calls, it's a > piece of > crap. i dont think any ports of u-boot need worry about this.
agreed there. The main reason for me doing this was to provide a "generic" mechanism that mimic how we boot kernels on PPC. The other issue w/providing this on all arch's is that the number of params passed via regs may vary and I don't know what is for arm, avr32, blackfin, i386, m68k, microblaze, mips, nios, nios2, and sh. and each variation will require a different prototype. if someone can tell me what the number of args are for each arch we can see about providing this everywhere. - k ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users