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>
Fri, 27 Jan 2017 23:25:44 +0000 (17:25 -0600)
pasdk/test_dsp/sap/sap.c

index f98c6fe24725685558458ef1042e3102dad9ecfc..def29cc0fd167c938c84f13cad6529fc5ee55776 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();
         }
     }
 
@@ -1167,8 +1170,6 @@ Void SAP_watchDog (Void)
 
     // 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 ();