kernel/eka/kernel/arm/cache_external.cpp
branchRCL_3
changeset 80 597aaf25e343
parent 62 4a8fed1c0ef6
child 256 c1f20ce4abcf
equal deleted inserted replaced
62:4a8fed1c0ef6 80:597aaf25e343
   556 	for (way = 0 ; way <Info.iAssoc ; way++)
   556 	for (way = 0 ; way <Info.iAssoc ; way++)
   557 		{
   557 		{
   558 		for (index = 0 ; index <indexNo ; index++)
   558 		for (index = 0 ; index <indexNo ; index++)
   559 			{
   559 			{
   560 		    L220_COMMAND_PREAMBLE;
   560 		    L220_COMMAND_PREAMBLE;
   561             *ctrlReg = (way<<29) | (index<<5); //this will clean,purge or flush cache line
   561 		    *ctrlReg = (way<<ARML2C_WayShift) | (index<<ARML2C_IndexShift); //this will maintain a single cache line
   562             L220_COMMAND_POSTAMBLE;
   562             L220_COMMAND_POSTAMBLE;
   563 			PL310_SPIN_FLASH;
   563 			PL310_SPIN_FLASH;
   564 			}
   564 			}
   565 		}
   565 		}
   566     PL310_SPIN_UNLOCK;
   566     PL310_SPIN_UNLOCK;