Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
On Tue, Aug 19, 2008 at 12:25 AM, Becky Bruce <[EMAIL PROTECTED]> wrote: > > On Aug 18, 2008, at 3:51 PM, Michael Neuling wrote: > >> In message <[EMAIL PROTECTED]> >> you wrote: >>> >>> The mmu is still disabled at this point. >>> >>> What is marked as readonly is the text section of the vmlinux f

Re: self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
The mmu is still disabled at this point. What is marked as readonly is the text section of the vmlinux file generated when compiling the kernel. And since the code tries to write to the text section, I assumed it was the reason for the segmentation fault. I'm not sure how this is dealt with on re

self-modifying code in 2.6 kernel for ppc writes into readonly section

2008-08-18 Thread Mihaela Grigore
Hello, First, I'm talkin about the 2.6.11 version. I know arch/ppc is gone in latest versions, but i assume the code is still the same and just moved to powerpc. There is a piece of code in the early initialization of the 2.6 kernel that identifies the cpu type and then tries to eliminate code th