On Mon, 2001-11-05 at 17:09, Richard Hodges wrote:
> Would anyone be able to provide information on the arguments
> to kernel_entry (in head.S)?
> The first two look pretty straightforward, argument count and
> string vectors. I assume that argument zero is actually the
> first argument, and not "vmlinux"?
> What are the third (ulong) and fourth (int *) arguments? I have
> read head.S and searched for days trying to find this info :-(
> I thought PMON would be a decent reference, but run_target() only
> seems to set $4 and $5, before calling _go().
That's boot code specific. MIPS Tech's yamon passes:
0: number of arguments
1: pointer to first arg
2: pointer to environment variables
3: pointer to prom routines you can call