Module Name:    src
Committed By:   skrll
Date:           Wed Oct 29 23:01:46 UTC 2014

Modified Files:
        src/sys/arch/arm/arm: cpufunc_asm_armv7.S

Log Message:
Add some dsb instructions to avoid Cortex A7 errata


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/arm/arm/cpufunc_asm_armv7.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/arm/arm/cpufunc_asm_armv7.S
diff -u src/sys/arch/arm/arm/cpufunc_asm_armv7.S:1.19 src/sys/arch/arm/arm/cpufunc_asm_armv7.S:1.20
--- src/sys/arch/arm/arm/cpufunc_asm_armv7.S:1.19	Wed Oct 29 16:22:31 2014
+++ src/sys/arch/arm/arm/cpufunc_asm_armv7.S	Wed Oct 29 23:01:46 2014
@@ -377,6 +377,7 @@ ENTRY_NP(armv7_dcache_inv_all)
 	b	1b
 
 .Lnext_level_inv:
+	dsb
 	mrc	p15, 1, r0, c0, c0, 1	@ read CLIDR
 	ubfx	ip, r0, #24, #3		@ narrow to LoC
 	add	r3, r3, #2		@ go to next level
@@ -437,6 +438,7 @@ ENTRY_NP(armv7_dcache_wbinv_all)
 	b	1b
 
 .Lnext_level_wbinv:
+	dsb
 	mrc	p15, 1, r0, c0, c0, 1	@ read CLIDR
 	ubfx	ip, r0, #24, #3		@ narrow to LoC
 	add	r3, r3, #2		@ go to next level

Reply via email to