20 likes | 261 Views
SDMA_BUFF = malloc ( (Int32) (( SDMA_BUFF_SIZE + 63)/64) * 64 ); SDMA_BUFF = (Uint8 *) ( (Int32) SDMA_BUFF & ~63 );. L1D Cache. L2SRAM. SDMA BUF. C674 subsystem. SRAM. SDRAM. SDMA BUF and CPU BUF Map to same L1D Cache line. CPU BUF. Cache. EDMA. UHPI. -. CORRUPT.
E N D
SDMA_BUFF = malloc( (Int32) (( SDMA_BUFF_SIZE + 63)/64) * 64 ); SDMA_BUFF = (Uint8 *) ( (Int32) SDMA_BUFF & ~63 ); L1D Cache L2SRAM SDMA BUF C674 subsystem SRAM SDRAM SDMA BUF and CPU BUF Map to same L1D Cache line. CPU BUF Cache EDMA UHPI - CORRUPT CPU_BUFF = malloc( (Int32) ((CPU_BUFF_SIZE + 63)/64) * 64 ); CPU_BUFF = (Uint8 *) ( (Int32) CPU_BUFF & ~63 );