huojianchaoyy commented on code in PR #22093:
URL: https://github.com/apache/nuttx/pull/22093#discussion_r4674607295


##########
sched/misc/assert.c:
##########
@@ -853,9 +868,18 @@ static void dump_fatal_info(FAR struct tcb_s *rtcb,
 static void reset_board(void)
 {
 #if CONFIG_BOARD_RESET_ON_ASSERT >= 1
-  up_flush_dcache_all();
   board_reset(CONFIG_BOARD_ASSERT_RESET_VALUE);

Review Comment:
   Good catch, thanks. Fixed in 2e3823795ec ("sched/misc/assert: flush the 
dcache in reset_board() again"), right after the commit that moved the flush: 
`reset_board()` flushes again before `board_reset()`, and the flush before 
`PANIC_KERNEL_FINAL` stays. That covers what `dump_core_info()` and the 
`SYS_HALT` notifiers write, and the nested assert too, since it goes straight 
to `reset_board()`.



-- 
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]

Reply via email to