From: Chitresh Gupta Date: Wed, 28 Dec 2016 07:04:24 +0000 (+0530) Subject: Fixed IPC init issue. X-Git-Url: https://git.ti.com/gitweb?p=processor-sdk%2Fperformance-audio-sr.git;a=commitdiff_plain;h=8dd048c30945e6df4bd06e60aa751471cbb5d741;ds=inline Fixed IPC init issue. --- diff --git a/pasdk/test_dsp/framework/systemInit.c b/pasdk/test_dsp/framework/systemInit.c index b8d82156..d0f746fd 100644 --- a/pasdk/test_dsp/framework/systemInit.c +++ b/pasdk/test_dsp/framework/systemInit.c @@ -96,6 +96,16 @@ Void taskSysInitFxn(Void) Log_info0("Enter taskSysInitFxn()"); + // Create Shared DDR region as non-Cacheable, Before IPC attach + // TODO: remove hardcoded address and get correct values from .bld + { // base: 0x81000000, len: 0x01000000, + UInt Common2_DDR3_MAR_base = 0x01848204; + UInt Common2_DDR3_base = 0x81000000; + UInt Common2_DDR3_len = 0x01000000; + // disable cache for common2 DDR3 + Cache_setMar(Common2_DDR3_base, Common2_DDR3_len, Cache_Mar_DISABLE); + } + //taskPriAfp = Task_setPri(TaskAfp, -1); //taskPriAip = Task_setPri(TaskAip, -1); //taskPriAsip = Task_setPri(TaskAsip, -1); @@ -111,16 +121,6 @@ Void taskSysInitFxn(Void) //} while ((status < 0) && (status == Ipc_E_NOTREADY)); } while (status != Ipc_S_SUCCESS); - // Create Shared DDR region as non-Cacheable - // TODO: remove hardcoded address and get correct values from .bld - { // base: 0x81000000, len: 0x01000000, - UInt Common2_DDR3_MAR_base = 0x01848204; - UInt Common2_DDR3_base = 0x81000000; - UInt Common2_DDR3_len = 0x01000000; - // disable cache for common2 DDR3 - Cache_setMar(Common2_DDR3_base, Common2_DDR3_len, Cache_Mar_DISABLE); - } - /* Initialize (IPC) ASP master messaging */ /* Note: MessageQ_open() called in this function. MessageQ_open() blocks. */