your application then it is easy. Simply use the:
__attribute__((section(".cached_bss")))
feature of GCC to annotate all of those variables which you want to be
placed into the cacheable RAM, and then make sure that your linker
script assigns the .cached_bss to the cacheable RAM memory region. Easy!
:-)
MEMORY
{
cachableRAM : org = 0x100, len = 0x200
uncacheRAM: org = 0x3000, len = 0x40000
}
SECTIONS
{
[...other sections...]
.cached_bss : { *(.cached_bss) } > cachableRAM;
.bss : { *(.bss) } > uncacheRAM;
[...other sections...]
}
Cheers
Nick