linux-mips
[Top] [All Lists]

Re: Arguments for kernel_entry?

To: Richard Hodges <rh@matriplex.com>
Subject: Re: Arguments for kernel_entry?
From: Pete Popov <ppopov@mvista.com>
Date: 05 Nov 2001 17:21:17 -0800
Cc: linux-mips <linux-mips@oss.sgi.com>
In-reply-to: <Pine.BSF.4.10.10111051659510.600-100000@mail.matriplex.com>
References: <Pine.BSF.4.10.10111051659510.600-100000@mail.matriplex.com>
Sender: owner-linux-mips@oss.sgi.com
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


Pete



<Prev in Thread] Current Thread [Next in Thread>