Thread (12 messages) 12 messages, 6 authors, 2004-04-01

Re: [RFC] "indirect" DCR access (40x, BookE)

From: Eugene Surovegin <hidden>
Date: 2004-03-12 04:54:51

On Thu, Mar 11, 2004 at 08:44:09PM -0800, Stephen Williams wrote:
quoted
quoted
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.
Yes, you are correct, but this is done only once during startup and
nobody cares how fast it is. BTW, there is no locking issues at this
stage.

I'm not saying that it's impossible :). It's just not very efficient
to do such stuff on run-time (lock a spinlock, change memory, dcache
flush, icache invalidate, isync...)

Eugene.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help