Mohamed Hassan commented on a discussion on 
cpukit/include/rtems/confdefs/extensions.h: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/86#note_108020

 >    #include <rtems/stackchk.h>
 >  #endif
 >  
 > +#ifdef CONFIGURE_STACK_CHECKER_ENABLED
 > +  #ifdef CONFIGURE_STACK_CHECKER_REPORTER
 > +    const Stack_checker_reporter_initialize 
 > _Stack_checker_reporter_initialize =
 > +      _CONFIGURE_ASSERT_NOT_NULL(
 > +        Stack_checker_reporter_initialize,
 > +        CONFIGURE_STACK_CHECKER_REPORTER
 > +      );
 > +
 > +  #else
 > +    const Stack_checker_reporter_initialize 
 > _Stack_checker_reporter_initialize =
 > +      _CONFIGURE_ASSERT_NOT_NULL(
 > +        Stack_checker_reporter_initialize,
 > +        DEFAULT_STACK_CHECKER_REPORTER

Sorry I don't get this, I have one function pointer 
`_Stack_checker_reporter_initialize`:
- if `CONFIGURE_STACK_CHECKER_REPORTER` defined it will point to 
`CONFIGURE_STACK_CHECKER_REPORTER`
- else it will point to `DEFAULT_STACK_CHECKER_REPORTER`

this pointer is called  inside `rtems_stack_checker_switch_extension`
can you elaborate more.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/86#note_108020
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to