|
Re: How do I use the ITCM on G45 ARM926EJ-S in QNX 6.4.1?
|
04/23/2010 8:36 AM
post52493
|
Re: How do I use the ITCM on G45 ARM926EJ-S in QNX 6.4.1?
There is no straightforward support for the TCMs - the details are
generally too cpu-specific to be useful in any generic way.
What you could try is:
- ensure the ITCM and DTCM are configured correctly (base/size etc.)
For example in startup or program the CP15 registers yourself (the
code that does this must be privileged via ThreadCtl _NTO_TCTL_IO)
- use mmap to directly map the ITCM physical address range.
eg. mmap(0, size, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_NOCACHE, MAP_SHARED|MAP_PHYS, NOFD, paddr)
- copy your code to the ITCM mapping
Jeff Pace wrote:
> I'm wanting to setup the ITCM on the G45 for code execution.
> The G45 has 64k or internal memory that can be split into 32k of instruction and 32k of data. This memory allows the
processor to access it up to processor speeds.
> Therefore I would like to be able to use this memory for optimizing code performance.
> I’m not sure if this could be done with a #pragma or if it would have to be mapped some other way.
> Thanks,
> Jeff
|
|
|