Make dcache_inv_range() point to the proper routines on ARM9 and ARM9E/ARM10.

On some ARM variations CPU func dispatcher has the D-cache invalidate method
point to write-back invalidate, which is wrong, and can lead to a crash/panic
on affected platforms.

Spotted by:	HPS
Reviewed by:	cognet
Approved by:	re (kib)
This commit is contained in:
raj 2009-07-21 08:29:19 +00:00
parent 827e061024
commit f7cf3989b3

View File

@ -265,7 +265,7 @@ struct cpu_functions arm9_cpufuncs = {
arm9_dcache_wbinv_all, /* dcache_wbinv_all */
arm9_dcache_wbinv_range, /* dcache_wbinv_range */
/*XXX*/ arm9_dcache_wbinv_range, /* dcache_inv_range */
arm9_dcache_inv_range, /* dcache_inv_range */
arm9_dcache_wb_range, /* dcache_wb_range */
arm9_idcache_wbinv_all, /* idcache_wbinv_all */
@ -327,7 +327,7 @@ struct cpu_functions armv5_ec_cpufuncs = {
armv5_ec_dcache_wbinv_all, /* dcache_wbinv_all */
armv5_ec_dcache_wbinv_range, /* dcache_wbinv_range */
/*XXX*/ armv5_ec_dcache_wbinv_range, /* dcache_inv_range */
armv5_ec_dcache_inv_range, /* dcache_inv_range */
armv5_ec_dcache_wb_range, /* dcache_wb_range */
armv5_ec_idcache_wbinv_all, /* idcache_wbinv_all */