[RFC] "indirect" DCR access (40x, BookE)
612dlag102 at sneakemail.com
Fri Mar 12 15:44:09 EST 2004
Eugene Surovegin ebs-at-ebshome.net |PPC Linux Embedded| wrote:
> On Thu, Mar 11, 2004 at 09:46:59PM -0500, Dan Malek wrote:
>>>Comments, suggestions are welcome.
>>I think you should just write it as self modifying code :-)
>>Write the instruction with the DCR number and just execute it.
> And deal with locking and icache/dcache coherency ?
> No, thanks :)
Actually, I recall that there is a code fixup mechanism that
is invoked early in kernel init that does exactly that: it
manages some machine specific differences by editing the code
in place in a safe way. My memory is not good enough to point
to the right place in the code, though, or to explain how it
Steve Williams "The woods are lovely, dark and deep.
steve at XXXXXXXXXX But I have promises to keep,
http://www.XXXXXXXXXX and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded