Skip to contentSkip to conversation

virtual vs physical addresses to cache functions

DISCUSSION John Linn 2 participants 2 messages Oct 29, 2009 – Oct 30, 2009

lore
Share & tools
lore

John Linn

author
#0 lore raw

Maybe this is a dumb question...

I believe that the kernel expects virtual addresses to be passed to the defined cache functions across all architectures. Looking at PowerPC and Blackfin confirm this I think.

Can someone confirm this or point to where it's documented as I have dug for it without finding any specific details?

Thanks,
John

This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.

#1 lore raw
Quoted 1 line · John Linn

Maybe this is a dumb question...

you should see the stuff people put into hardware ...

Quoted 2 lines

I believe that the kernel expects virtual addresses to be passed to the defined cache functions across all architectures.

i believe they're virtual since most (sane) hardware virtual memory implementations are done with caches based on virtual addresses, but what do i know (leading into next point ...)

Quoted 1 line

 Looking at PowerPC and Blackfin confirm this I think.

the Blackfin arch (which is what i work on) is a bad example as it lacks virtual memory support
-mike