mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
ARMv7-R: remove the redundant update on SCTLR
mpu_control() is invoking cp15_wrsctlr() around SCTLR update redundantly. Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
This commit is contained in:
@@ -392,7 +392,6 @@ static inline void mpu_control(bool enable)
|
||||
if (enable)
|
||||
{
|
||||
regval |= (SCTLR_M | SCTLR_BR);
|
||||
cp15_wrsctlr(regval);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user