Skip to content

Commit 665a140

Browse files
crafcat7xiaoxiang781216
authored andcommitted
armv7/v8:Fix configuration csselr default configuration error.
Signed-off-by: chenrun1 <[email protected]>
1 parent 22d1059 commit 665a140

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/arm/src/armv7-m/nvic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@
679679
/* Cache Size Selection Register (Cortex-M7) */
680680

681681
#define NVIC_CSSELR_IND (1 << 0) /* Bit 0: Selects either instruction or data cache */
682-
# define NVIC_CSSELR_IND_ICACHE (0 << 0) /* 0=Instruction Cache */
683-
# define NVIC_CSSELR_IND_DCACHE (1 << 0) /* 1=Data Cache */
682+
# define NVIC_CSSELR_IND_ICACHE (1 << 0) /* 0=Instruction Cache */
683+
# define NVIC_CSSELR_IND_DCACHE (0 << 0) /* 1=Data Cache */
684684

685685
#define NVIC_CSSELR_LEVEL_SHIFT (1) /* Bit 1-3: Selects cache level */
686686
#define NVIC_CSSELR_LEVEL_MASK (7 << NVIC_CSSELR_LEVEL_SHIFT)

arch/arm/src/armv8-m/nvic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,8 @@
778778
/* Cache Size Selection Register */
779779

780780
#define NVIC_CSSELR_IND (1 << 0) /* Bit 0: Selects either instruction or data cache */
781-
# define NVIC_CSSELR_IND_ICACHE (0 << 0) /* 0=Instruction Cache */
782-
# define NVIC_CSSELR_IND_DCACHE (1 << 0) /* 1=Data Cache */
781+
# define NVIC_CSSELR_IND_ICACHE (1 << 0) /* 0=Instruction Cache */
782+
# define NVIC_CSSELR_IND_DCACHE (0 << 0) /* 1=Data Cache */
783783

784784
#define NVIC_CSSELR_LEVEL_SHIFT (1) /* Bit 1-3: Selects cache level */
785785
#define NVIC_CSSELR_LEVEL_MASK (7 << NVIC_CSSELR_LEVEL_SHIFT)

0 commit comments

Comments
 (0)