Update source to Armbian-dev-202610.A311Y3
This commit is contained in:
@@ -164,11 +164,19 @@ ENTRY(__asm_invalidate_dcache_range)
|
||||
|
||||
/* x2 <- minimal cache line size in cache system */
|
||||
sub x3, x2, #1
|
||||
bic x0, x0, x3
|
||||
1: dc ivac, x0 /* invalidate data or unified cache */
|
||||
add x0, x0, x2
|
||||
tst x1, x3 /* end cache line aligned? */
|
||||
bic x1, x1, x3
|
||||
b.eq 1f
|
||||
dc civac, x1 /* clean & invalidate data or unified cache */
|
||||
1: tst x0, x3 /* start cache line aligned? */
|
||||
bic x0, x0, x3
|
||||
b.eq 2f
|
||||
dc civac, x0 /* clean & invalidate data or unified cache */
|
||||
b 3f
|
||||
2: dc ivac, x0 /* invalidate data or unified cache */
|
||||
3: add x0, x0, x2
|
||||
cmp x0, x1
|
||||
b.lo 1b
|
||||
b.lo 2b
|
||||
dsb sy
|
||||
ret
|
||||
ENDPROC(__asm_invalidate_dcache_range)
|
||||
|
||||
Reference in New Issue
Block a user