
In message ECB2C6CF-0AB8-44AE-AD35-769B741B0528@kernel.crashing.org you wrote:
The main reason for me doing this was to provide a "generic" mechanism that mimic how we boot kernels on PPC.
May I ask why exactly this is needed at all? Kernels should be booted using the bootm command - if somethingis missing there, it should be added / fixed in this contexzt instead of adding another highly specialized command.
And *if* we add this, then please let's make it general enough so we can use it on all architectures without adding a lot of #ifdef mess.
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.
No, just change the design, then. Make it a varargs function and pass the number of registers as one argument.
Best regards,
Wolfgang Denk