On 16.01.23 10:38, 朱忠杰 wrote:
with RTEMS_SMP or RTEMS_PROFILING defined, it will call _Thread_Dispatch_disable_critical( &lock_context ) only in UP system with RTEMS_PROFILING not defined, it will call _Thread_Dispatch_disable_critical( NULL ), in this case, the real function use the lock_context is _Profiling_Thread_dispatch_disable_critical(), it is an empty function. I have tried the three cases. it could also be avoid by initialize the lock_context = {};
Sorry, I misread your patch. I think it is doing the right thing. I will test it tomorrow.
-- embedded brains GmbH Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/ _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel