From 63bcca985fe53080fdae624141433df243fdb4e8 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sat, 19 Nov 2022 06:26:17 +0800 Subject: [PATCH] arch/armv7-r: Don't clear SCTLR_U bit since spec require it's always one Signed-off-by: Xiang Xiao --- arch/arm/src/armv7-r/arm_head.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/armv7-r/arm_head.S b/arch/arm/src/armv7-r/arm_head.S index d367533e46..5fd19f5dc4 100644 --- a/arch/arm/src/armv7-r/arm_head.S +++ b/arch/arm/src/armv7-r/arm_head.S @@ -195,9 +195,9 @@ __start: /* Clear all configurable bits */ - bic r0, r0, #(SCTLR_M | SCTLR_A | SCTLR_C | SCTLR_CCP15BEN | SCTLR_B) - bic r0, r0, #(SCTLR_SW | SCTLR_I | SCTLR_V | SCTLR_RR) - bic r0, r0, #(SCTLR_BR | SCTLR_DZ | SCTLR_FI | SCTLR_U) + bic r0, r0, #(SCTLR_M | SCTLR_A | SCTLR_C | SCTLR_CCP15BEN | SCTLR_B) + bic r0, r0, #(SCTLR_SW | SCTLR_I | SCTLR_V | SCTLR_RR) + bic r0, r0, #(SCTLR_BR | SCTLR_DZ | SCTLR_FI) bic r0, r0, #(SCTLR_VE | SCTLR_EE | SCTLR_NMFI | SCTLR_TE) /* Set configured bits */