wangzhi-art commented on code in PR #15430: URL: https://github.com/apache/nuttx/pull/15430#discussion_r1908276947
########## arch/arm/src/armv7-r/arm_l2cc_pl310.c: ########## @@ -491,15 +494,28 @@ void l2cc_disable(void) /* Flush all ways using the Clean Invalidate Way Register (CIWR). */ - flags = enter_critical_section(); + flags = spin_lock_irqsave(&g_l2cc_lock); + pl310_flush_all(); + + /* Disable the L2CC-P310 L2 cache by clearing the Control Register (CR) */ + + putreg32(0, L2CC_CR); Review Comment: > call l2cc_disable_nolock Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
