[rtems commit] cpukit: Compare the function result

Joel Sherrill joel at rtems.org
Mon Nov 1 13:34:57 UTC 2021


Module:    rtems
Branch:    master
Commit:    a678d1a99c66defb67017a365d2d66e9a47e6503
Changeset: http://git.rtems.org/rtems/commit/?id=a678d1a99c66defb67017a365d2d66e9a47e6503

Author:    Kinsey Moore <kinsey.moore at oarcorp.com>
Date:      Fri Oct 29 14:12:44 2021 -0500

cpukit: Compare the function result

Compare the function result instead of the function pointer for non-SMP
builds.

---

 cpukit/score/src/exceptionmapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/src/exceptionmapping.c b/cpukit/score/src/exceptionmapping.c
index 1baa047..19f04cc 100644
--- a/cpukit/score/src/exceptionmapping.c
+++ b/cpukit/score/src/exceptionmapping.c
@@ -76,7 +76,7 @@ void _Exception_Raise_signal(
 #ifdef RTEMS_SMP
   system_up = ( _Per_CPU_Get_state( cpu_self ) == PER_CPU_STATE_UP );
 #else
-  system_up = ( _System_state_Get == SYSTEM_STATE_UP );
+  system_up = ( _System_state_Get() == SYSTEM_STATE_UP );
 #endif
 
   if ( !system_up ) {



More information about the vc mailing list