Hello! I desperately need your help with dynamic shared region entry setting on the hlos side through SharedRegion_setEntry call. I do it in the following way:
SysLink_setup();
SharedRegion_Config * config = new SharedRegion_Config;
config->cacheLineSize = 128;
config->numEntries = 4;
config->translate = true;
int SRstatus = SharedRegion_setup(config);
SharedRegion_Entry *entry = new SharedRegion_Entry;
Int srStatus = SharedRegion_getEntry(0, entry);
if(!(entry->isValid)){
int SRstatus0,SRstatus1 = 0;
SharedRegion_Entry *entry0 = new SharedRegion_Entry;
SharedRegion_entryInit(entry0);
entry0->createHeap = true;
entry0->len = 0x1000000;
entry0->base = 0xBE900000;
entry0->isValid = true;
entry0->name = "SR0";
entry0->ownerProcId = 3;
entry0->cacheEnable = false;
entry0->cacheLineSize = 128;
SRstatus0 = SharedRegion_setEntry(0,entry0);
}
And i get a crush if createHeap field is set to true in SharedRegion_Entry.