1 .file "cpu-ppc.linux.S"
5 .type flush_icache, @function
9 clrrdi 3,3,5 # ptr &= ~0x1f
11 clrrwi 3,3,5 # ptr &= ~0x1f
13 sub 4,4,3 # end -= aligned_ptr
14 addi 4,4,0x1f # end += 0x1f
16 srdi. 4,4,5 # end >>= 5, set cr
18 srwi. 4,4,5 # end >>= 5, set cr
22 # Loop over the buffer by cache line and flush the data cache.
30 # Synchronize to ensure the cache line flushes are complete.
33 # Loop over the buffer by cache line and flush the instruction cache.
41 # Clear instruction pipeline to force reloading of instructions.
45 .size flush_icache,.-flush_icache
46 .section .note.GNU-stack,"",@progbits