index f31f1c6043f6c3381bbf9388545c5d777f1d71bb..aff66f8a17eb23e6de178d11c7061de6f4b3a3e5 100644 (file)
--- a/pasdk/test_dsp/sap/sap.c
+++ b/pasdk/test_dsp/sap/sap.c
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();
}
}
// 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 ();