* Corrupted registers: x0-x7, x9-x11
*/
ENTRY(__flush_dcache_all)
//保证之前的访存指令的顺序
dsb sy...cache类型放到x1中,x0中存放:clidr_el1
lsr x1, x0, x2
//掩掉高位,只取当前cache类型
and x1, x1, #7...save_and_disable_irqs, olddaif
* mrs \olddaif,daif
* disable_irq
* .endm
*/
//保存daif到x9寄存器中,...of way sizeincrement
//提取bits[27:13]位:(Number of sets in cache) – 1
mov x7, #0x7fff
//x7中存储...cache中的set数
and x7, x7, x1, lsr #13 // extract max number of the index size
loop2:
//把x4