arch/arm: Fix typo error in cp15_cacheops.h

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-12-25 20:41:47 +08:00
committed by Xiang Xiao
parent 1ea9db4ebe
commit f783f5c384
2 changed files with 26 additions and 28 deletions
+13 -14
View File
@@ -326,7 +326,7 @@
.endm .endm
/**************************************************************************** /****************************************************************************
* Name: cp15_invalidate_icache * Name: cp15_invalidate_icache_all
* *
* Description: * Description:
* Invalidate all instruction caches to PoU, also flushes branch target * Invalidate all instruction caches to PoU, also flushes branch target
@@ -340,7 +340,7 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_invalidate_icache, tmp .macro cp15_invalidate_icache_all, tmp
mov \tmp, #0 mov \tmp, #0
mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */ mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */
isb isb
@@ -397,9 +397,8 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_flush_btb_bymva, tmp .macro cp15_flush_btb_bymva, va
mov \tmp, #0 mrc p15, 0, \va, c7, c5, 7 /* BPIMVA */
mrc p15, 0, \tmp, c7, c5, 7 /* BPIMVA */
.endm .endm
/**************************************************************************** /****************************************************************************
@@ -488,8 +487,8 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_clean_ucache_bymva, setway .macro cp15_clean_ucache_bymva, va
mrc p15, 0, \setway, c7, c11, 1 /* DCCMVAU */ mrc p15, 0, \va, c7, c11, 1 /* DCCMVAU */
.endm .endm
/**************************************************************************** /****************************************************************************
@@ -667,7 +666,7 @@ static inline void cp15_invalidate_btb_inner_sharable(void)
} }
/**************************************************************************** /****************************************************************************
* Name: cp15_invalidate_icache * Name: cp15_invalidate_icache_all
* *
* Description: * Description:
* Invalidate all instruction caches to PoU, also flushes branch target * Invalidate all instruction caches to PoU, also flushes branch target
@@ -732,16 +731,16 @@ static inline void cp15_flush_btb(void)
* Invalidate branch predictor array entry by MVA * Invalidate branch predictor array entry by MVA
* *
* Input Parameters: * Input Parameters:
* None * va - 32-bit value with VA format
* *
* Returned Value: * Returned Value:
* None * None
* *
****************************************************************************/ ****************************************************************************/
static inline void cp15_flush_btb_bymva(void) static inline void cp15_flush_btb_bymva(unsigned int va)
{ {
CP15_SET(BPIMVA, 0); CP15_SET(BPIMVA, va);
} }
/**************************************************************************** /****************************************************************************
@@ -833,16 +832,16 @@ static inline void cp15_clean_dcache_bysetway(unsigned int setway)
* Clean unified cache line by MVA * Clean unified cache line by MVA
* *
* Input Parameters: * Input Parameters:
* setway - 32-bit value with VA format * va - 32-bit value with VA format
* *
* Returned Value: * Returned Value:
* None * None
* *
****************************************************************************/ ****************************************************************************/
static inline void cp15_clean_ucache_bymva(unsigned int setway) static inline void cp15_clean_ucache_bymva(unsigned int va)
{ {
CP15_SET(DCCMVAU, setway); CP15_SET(DCCMVAU, va);
} }
/**************************************************************************** /****************************************************************************
+13 -14
View File
@@ -333,7 +333,7 @@
.endm .endm
/**************************************************************************** /****************************************************************************
* Name: cp15_invalidate_icache * Name: cp15_invalidate_icache_all
* *
* Description: * Description:
* Invalidate all instruction caches to PoU, also flushes branch target * Invalidate all instruction caches to PoU, also flushes branch target
@@ -347,7 +347,7 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_invalidate_icache, tmp .macro cp15_invalidate_icache_all, tmp
mov \tmp, #0 mov \tmp, #0
mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */ mrc p15, 0, \tmp, c7, c5, 0 /* ICIALLU */
isb isb
@@ -404,9 +404,8 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_flush_btb_bymva, tmp .macro cp15_flush_btb_bymva, va
mov \tmp, #0 mrc p15, 0, \va, c7, c5, 7 /* BPIMVA */
mrc p15, 0, \tmp, c7, c5, 7 /* BPIMVA */
.endm .endm
/**************************************************************************** /****************************************************************************
@@ -495,8 +494,8 @@
* *
****************************************************************************/ ****************************************************************************/
.macro cp15_clean_ucache_bymva, setway .macro cp15_clean_ucache_bymva, va
mrc p15, 0, \setway, c7, c11, 1 /* DCCMVAU */ mrc p15, 0, \va, c7, c11, 1 /* DCCMVAU */
.endm .endm
/**************************************************************************** /****************************************************************************
@@ -674,7 +673,7 @@ static inline void cp15_invalidate_btb_inner_sharable(void)
} }
/**************************************************************************** /****************************************************************************
* Name: cp15_invalidate_icache * Name: cp15_invalidate_icache_all
* *
* Description: * Description:
* Invalidate all instruction caches to PoU, also flushes branch target * Invalidate all instruction caches to PoU, also flushes branch target
@@ -739,16 +738,16 @@ static inline void cp15_flush_btb(void)
* Invalidate branch predictor array entry by MVA * Invalidate branch predictor array entry by MVA
* *
* Input Parameters: * Input Parameters:
* None * va - 32-bit value with VA format
* *
* Returned Value: * Returned Value:
* None * None
* *
****************************************************************************/ ****************************************************************************/
static inline void cp15_flush_btb_bymva(void) static inline void cp15_flush_btb_bymva(unsigned int va)
{ {
CP15_SET(BPIMVA, 0); CP15_SET(BPIMVA, va);
} }
/**************************************************************************** /****************************************************************************
@@ -840,16 +839,16 @@ static inline void cp15_clean_dcache_bysetway(unsigned int setway)
* Clean unified cache line by MVA * Clean unified cache line by MVA
* *
* Input Parameters: * Input Parameters:
* setway - 32-bit value with VA format * va - 32-bit value with VA format
* *
* Returned Value: * Returned Value:
* None * None
* *
****************************************************************************/ ****************************************************************************/
static inline void cp15_clean_ucache_bymva(unsigned int setway) static inline void cp15_clean_ucache_bymva(unsigned int va)
{ {
CP15_SET(DCCMVAU, setway); CP15_SET(DCCMVAU, va);
} }
/**************************************************************************** /****************************************************************************