PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Hardcore ARM/XScale Cache Control

Hi folks.

I wonder if anyone has ever successfully changed the cache control of ARM / XScale CPU's.

Especially the XScale streaming cache looks nice. It would be a perfect canditate to speed up sound mixing and rendering functions.

I'm writing for WinCE, so I think I need to hack myself into the memory management.. Or is there a simpler way?

What I found out so far is, that I need to create a new descriptor that maps the process memory to a different virtual address. There are two bits inside the descriptor that do the cache control. That way I could access the same physical memory using the different caches. I just haven't figured out how I can create such a descriptor (or where the descriptor table is at all)

I've seen crazy dma-transfers codes and other low-level stuff here, so I hope there are some lowlevel freaks on this board.
Code:

if(forum_lies_about_not_having_posted)
{
Forum_Shitiness++;
}

Grr.
Yep, it's been done by at least one person on this board ;)

What I found out so far is, that I need to create a new descriptor that maps the process memory to a different virtual address


If you're talking about your entire process, then "no you don't"...

That way I could access the same physical memory using the different caches.

The area will be in one cache or the other, not both, I believe.

I just haven't figured out how I can create such a descriptor (or where the descriptor table is at all)


The descriptor is either picked up from the on-chip Translation Lookaside Buffer (TLB), or the processor wanders off into the translation table pointed at by Co-processor 15, register 2.

Have a look at section 3.2 of the <a href="http://www.intel.com/design/pca/applicationsprocessors/manuals/278525-001.htm">Microarchitecture for the PXA250 and PXA210 Applications Processors User's Manual</a> and part b, section 3 of <a href="http://www.altera.com/literature/third-party/ddi0100e_arm_arm.pdf">the ARM ARM (Architecture Reference Manual)</a>.

Other people on this board (one at least) have played with tweaking memory cache attributes more than me.
Best "oops double post" ever.