public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* question about setup.c
@ 2003-12-23 18:43 John Gluck
  2003-12-26 10:47 ` Paolo Ornati
  0 siblings, 1 reply; 2+ messages in thread
From: John Gluck @ 2003-12-23 18:43 UTC (permalink / raw)
  To: linux-kernel

Hi

I've been poking around the kernel startup code to try and understand 
the sequence of events. I came across something I don't understand and 
which might be redundant.

This is from the 2.6.0 kernel:

In arch/i386/kernel/setup.c the parse_cmdline_early() function, the 
argument "mem=XXX[kKmM]" is parsed.

In arch/sh/kernel/setup.c the parse_cmdline() function also parses 
"mem=XXX[kKmM]"

Could someone please explain this.

I am not subscribed to this list so a reply directly to me would be 
appreciated.

Thanks and a Merry Christmas to everyone

John


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: question about setup.c
  2003-12-23 18:43 question about setup.c John Gluck
@ 2003-12-26 10:47 ` Paolo Ornati
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Ornati @ 2003-12-26 10:47 UTC (permalink / raw)
  To: John Gluck; +Cc: linux-kernel

On Tuesday 23 December 2003 19:43, John Gluck wrote:
> Hi
>
> I've been poking around the kernel startup code to try and understand
> the sequence of events. I came across something I don't understand and
> which might be redundant.
>
> This is from the 2.6.0 kernel:
>
> In arch/i386/kernel/setup.c the parse_cmdline_early() function, the
> argument "mem=XXX[kKmM]" is parsed.
>
> In arch/sh/kernel/setup.c the parse_cmdline() function also parses
> "mem=XXX[kKmM]"
>
> Could someone please explain this.

This is because they are two different architectures!
If you are compiling for i386 you aren't compiling for any other 
architecture, and vice versa!

IOW: only one subdirectory of "linux/arch" is used for each compilation.

>
> I am not subscribed to this list so a reply directly to me would be
> appreciated.
>
> Thanks and a Merry Christmas to everyone
>
> John
>

BYE

-- 
	Paolo Ornati
	Linux v2.4.23


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-26 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-23 18:43 question about setup.c John Gluck
2003-12-26 10:47 ` Paolo Ornati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox