Add back Cache_wb() after swapHdmi()
authorFrank Livingston <frank-livingston@ti.com>
Fri, 27 Jan 2017 23:25:44 +0000 (17:25 -0600)
committerFrank Livingston <frank-livingston@ti.com>
Mon, 30 Jan 2017 20:55:08 +0000 (14:55 -0600)
pasdk/test_dsp/sap/sap.c

index f31f1c6043f6c3381bbf9388545c5d777f1d71bb..aff66f8a17eb23e6de178d11c7061de6f4b3a3e5 100644 (file)
@@ -829,9 +829,12 @@ Int SAP_reclaim (DEV2_Handle device)
             Cache_wait();
 
             // max HWI disable duration ~1ms observed
-            //unsigned int key = Hwi_disable();                                        // GJ: Revisit, along with other context protections here.
+            //unsigned int key = Hwi_disable ();                    // GJ: Revisit, along with other context protections here.
             swapHdmi(pFrame->addr, pFrame->size);
             //Hwi_restore(key);
+
+            Cache_wb (pFrame->addr, pFrame->size, Cache_Type_ALL, 0);
+            Cache_wait();
         }
     }
 
@@ -1168,8 +1171,6 @@ Void SAP_watchDog (Void)
     // GJ: Is this architecture ok?
     // protect context
     Task_disable (); // needed since we may call SEM_post
-    // Hwi_disable commented since it used to affect other interrupts
-    // max HWI disable duration ~4ms observed
     //oldMask = Hwi_disable ();