xil_testcache.c File Reference

#include "xil_cache.h"
#include "xil_testcache.h"

Functions

int Xil_TestDCacheRange (void)
int Xil_TestDCacheAll (void)
int Xil_TestICacheRange (void)
int Xil_TestICacheAll (void)

Detailed Description

Contains utility functions to test cache.

 MODIFICATION HISTORY:

 Ver   Who  Date	 Changes
 ----- ---- -------- -------------------------------------------------------
 1.00a hbm  07/28/09 Initial release

 

Note:
This file contain functions that all operate on HAL.

Function Documentation

int Xil_TestDCacheAll void   ) 
 

Perform DCache all related API test such as Xil_DCacheFlush and Xil_DCacheInvalidate. This test function writes a constant value to the Data array, flushes the DCache, writes a new value, then invalidates the DCache.

Returns:
  • 0 is returned for a pass
  • -1 is returned for a failure

int Xil_TestDCacheRange void   ) 
 

Perform DCache range related API test such as Xil_DCacheFlushRange and Xil_DCacheInvalidateRange. This test function writes a constant value to the Data array, flushes the range, writes a new value, then invalidates the corresponding range.

Returns:
  • 0 is returned for a pass
  • -1 is returned for a failure

int Xil_TestICacheAll void   ) 
 

Perform Xil_ICacheInvalidate().

Returns:
  • 0 is returned for a pass The function will hang if it fails.

int Xil_TestICacheRange void   ) 
 

Perform Xil_ICacheInvalidateRange() on a few function pointers.

Returns:
  • 0 is returned for a pass The function will hang if it fails.


Generated on Thu Feb 13 14:48:12 2014 for 2014.1_doc by  doxygen 1.4.5