]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/sap/sap.c
Add back Cache_wb() after swapHdmi()
[processor-sdk/performance-audio-sr.git] / 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 ();