# RFC - use of \_stext vs PAGE\_OFFSET?

- From: Kumar Gala \<hidden\>
- Date: 2008-03-21 09:30:56 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2008/03/9437064
- Thread: https://ratatoskr.run/linuxppc-dev/2008/03/9437064/t.md

```text
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;
```
