* Arguments for kernel_entry?
@ 2001-11-06 1:09 Richard Hodges
2001-11-06 1:21 ` Pete Popov
0 siblings, 1 reply; 6+ messages in thread
From: Richard Hodges @ 2001-11-06 1:09 UTC (permalink / raw)
To: linux-mips
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().
Thanks!
-Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Arguments for kernel_entry?
2001-11-06 1:09 Arguments for kernel_entry? Richard Hodges
@ 2001-11-06 1:21 ` Pete Popov
2001-11-06 1:44 ` Richard Hodges
0 siblings, 1 reply; 6+ messages in thread
From: Pete Popov @ 2001-11-06 1:21 UTC (permalink / raw)
To: Richard Hodges; +Cc: linux-mips
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Arguments for kernel_entry?
2001-11-06 1:21 ` Pete Popov
@ 2001-11-06 1:44 ` Richard Hodges
2001-11-06 2:07 ` Pete Popov
0 siblings, 1 reply; 6+ messages in thread
From: Richard Hodges @ 2001-11-06 1:44 UTC (permalink / raw)
To: Pete Popov; +Cc: linux-mips
On 5 Nov 2001, Pete Popov wrote:
> 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
Okay, I think I have it now. It looks like _only_ prom_init() is
interested in these arguments.
1. kernel_entry() gives them to init_arch(),
2. init_arch gives them to prom_init(),
3. prom_init() does whatever it wants (eg, builds arcs_cmdline)
4. init_arch ends with a call to start_kernel(), and the original
arguments are effectively thrown away.
Or put more simply, the kernel_entry arguments are only used by
prom_init(). Is this right?
Thanks!
-Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Arguments for kernel_entry?
2001-11-06 1:44 ` Richard Hodges
@ 2001-11-06 2:07 ` Pete Popov
2001-11-06 21:58 ` _MIPS_SIM and others not defined by specs file warning Wayne Gowcher
0 siblings, 1 reply; 6+ messages in thread
From: Pete Popov @ 2001-11-06 2:07 UTC (permalink / raw)
To: Richard Hodges; +Cc: linux-mips
On Mon, 2001-11-05 at 17:44, Richard Hodges wrote:
> On 5 Nov 2001, Pete Popov wrote:
>
> > 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
>
> Okay, I think I have it now. It looks like _only_ prom_init() is
> interested in these arguments.
>
> 1. kernel_entry() gives them to init_arch(),
> 2. init_arch gives them to prom_init(),
> 3. prom_init() does whatever it wants (eg, builds arcs_cmdline)
> 4. init_arch ends with a call to start_kernel(), and the original
> arguments are effectively thrown away.
>
> Or put more simply, the kernel_entry arguments are only used by
> prom_init(). Is this right?
I believe that's correct. arch/mips/kernel/setup.c saves arcs_cmdline in
command_line and that's the end of arcs_cmdline.
Pete
^ permalink raw reply [flat|nested] 6+ messages in thread
* _MIPS_SIM and others not defined by specs file warning
2001-11-06 2:07 ` Pete Popov
@ 2001-11-06 21:58 ` Wayne Gowcher
2001-11-06 21:58 ` Wayne Gowcher
0 siblings, 1 reply; 6+ messages in thread
From: Wayne Gowcher @ 2001-11-06 21:58 UTC (permalink / raw)
To: linux-mips; +Cc: linux-mips
I am attempting to compile X using egcs-2.91.66 and I
am getting the following warnings which eventually
lead to the build failing.
#warning "Macro _MIPS_ISA has not been defined by
specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 24: #warning "Macro _MIPS_SIM has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 28: #warning "Macro _MIPS_SZINT has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 32: #warning "Macro _MIPS_SZLONG has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 36: #warning "Macro _MIPS_SZPTR has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 44: #warning "Please update your GCC to GCC
2.7.2-4 or newer"
I have previously successfully compiled X using
egcs-2.90.29.
Could someone tell me what I may be doing wrong ?
Or what I need to pas into the compiler in order for
it to read the specs file correctly.
Would also be grateful if someone could point to me a
document or something explaining what the specs file
is and how it is used. By looking at it, I figure it
to be a file that sets integer lengths, procesor type
etc. But it sure would be nice to get a bigger picture
explanation.
TIA
Wayne
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* _MIPS_SIM and others not defined by specs file warning
2001-11-06 21:58 ` _MIPS_SIM and others not defined by specs file warning Wayne Gowcher
@ 2001-11-06 21:58 ` Wayne Gowcher
0 siblings, 0 replies; 6+ messages in thread
From: Wayne Gowcher @ 2001-11-06 21:58 UTC (permalink / raw)
To: linux-mips
I am attempting to compile X using egcs-2.91.66 and I
am getting the following warnings which eventually
lead to the build failing.
#warning "Macro _MIPS_ISA has not been defined by
specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 24: #warning "Macro _MIPS_SIM has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 28: #warning "Macro _MIPS_SZINT has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 32: #warning "Macro _MIPS_SZLONG has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 36: #warning "Macro _MIPS_SZPTR has not been
defined by specs file"
../../../../config/makedepend/makedepend: warning:
vga.c: 44: #warning "Please update your GCC to GCC
2.7.2-4 or newer"
I have previously successfully compiled X using
egcs-2.90.29.
Could someone tell me what I may be doing wrong ?
Or what I need to pas into the compiler in order for
it to read the specs file correctly.
Would also be grateful if someone could point to me a
document or something explaining what the specs file
is and how it is used. By looking at it, I figure it
to be a file that sets integer lengths, procesor type
etc. But it sure would be nice to get a bigger picture
explanation.
TIA
Wayne
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-11-06 21:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-06 1:09 Arguments for kernel_entry? Richard Hodges
2001-11-06 1:21 ` Pete Popov
2001-11-06 1:44 ` Richard Hodges
2001-11-06 2:07 ` Pete Popov
2001-11-06 21:58 ` _MIPS_SIM and others not defined by specs file warning Wayne Gowcher
2001-11-06 21:58 ` Wayne Gowcher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox