hujun260 commented on code in PR #15338: URL: https://github.com/apache/nuttx/pull/15338#discussion_r1898171112
########## arch/arm64/src/common/arm64_cpustart.c: ########## @@ -231,6 +225,14 @@ void arm64_boot_secondary_c_routine(void) arm64_mmu_init(false); #endif + /* We need to confirm that current_task has been initialized. */ + + while (!current_task(this_cpu())); + + /* Init idle task to percpu reg */ + + up_update_task(current_task(this_cpu())); Review Comment: Yes, the current community code implements percpu storage for this_task on arm64, armv7a, armv7r, and armv8r archs, all using this approach. -- 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]
