Re: [PATCH v1] fix compiling warning

2023-01-16 Thread Sebastian Huber
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

Re: [PATCH v1] fix compiling warning

2023-01-16 Thread 朱忠杰
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_d

Re: [PATCH v1] fix compiling warning

2023-01-16 Thread Sebastian Huber
On 16.01.23 09:36, Zhu Zhongjie wrote: From: Zhongjie Zhu there are different cases for _ISR_lock_ISR_disable() and _ISR_lock_ISR_enable() in the case RTEMS_SMP is defined or RTEMS_PROFILING is defined, so remove the related code. ../../../cpukit/include/rtems/score/threaddispatch.h: In funct

[PATCH v1] fix compiling warning

2023-01-16 Thread Zhu Zhongjie
From: Zhongjie Zhu there are different cases for _ISR_lock_ISR_disable() and _ISR_lock_ISR_enable() in the case RTEMS_SMP is defined or RTEMS_PROFILING is defined, so remove the related code. ../../../cpukit/include/rtems/score/threaddispatch.h: In function '_Thread_Dispatch_disable': ../../..