linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RFC - use of _stext vs PAGE_OFFSET?
@ 2008-03-21  9:27 Kumar Gala
  0 siblings, 0 replies; only message in thread
From: Kumar Gala @ 2008-03-21  9:27 UTC (permalink / raw)
  To: linuxppc-dev

Is there any reason not use use _stext?

- k

diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c
index cd870a8..b0989ca 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c
@@ -277,7 +277,7 @@ void __init setup_arch(char **cmdline_p)
 	if (ppc_md.panic)
 		setup_panic();

-	init_mm.start_code = PAGE_OFFSET;
+	init_mm.start_code = (unsigned long)_stext;
 	init_mm.end_code = (unsigned long) _etext;
 	init_mm.end_data = (unsigned long) _edata;
 	init_mm.brk = klimit;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-21  9:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21  9:27 RFC - use of _stext vs PAGE_OFFSET? Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).