Fixed IPC init issue.
authorChitresh Gupta <chitresh.g@pathpartnertech.com>
Wed, 28 Dec 2016 07:04:24 +0000 (12:34 +0530)
committerChitresh Gupta <chitresh.g@pathpartnertech.com>
Wed, 28 Dec 2016 07:04:24 +0000 (12:34 +0530)
pasdk/test_dsp/framework/systemInit.c

index b8d82156136c87a972d995d305275fd5adae776f..d0f746fd04388681fba6845f15b9e8b960930908 100644 (file)
@@ -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. */