[Top] [All Lists]

Re: Arguments for kernel_entry?

To: Richard Hodges <>
Subject: Re: Arguments for kernel_entry?
From: Pete Popov <>
Date: 05 Nov 2001 17:21:17 -0800
Cc: linux-mips <>
In-reply-to: <>
References: <>
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


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