xiaoxiang781216 commented on code in PR #6235: URL: https://github.com/apache/incubator-nuttx/pull/6235#discussion_r870682696
########## arch/risc-v/src/common/crt0.c: ########## @@ -124,9 +189,11 @@ void _start(int argc, char *argv[]) /* Call C++ constructors */ + exec_ctors(); + /* Setup so that C++ destructors called on task exit */ - /* REVISIT: Missing logic */ + atexit(exec_dtors); Review Comment: BTW, we can move all crt0.c from arch near libs/libc/sched/task_startup.c and implement as this: ``` void _start(int argc, char *argv[]) { nxtask_startup(main, argc, argv); } ``` -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org