2 #include "lfds710_stack_internal.h"
8 /****************************************************************************/
9 void lfds710_stack_init_valid_on_current_logical_core( struct lfds710_stack_state *ss,
12 LFDS710_PAL_ASSERT( ss != NULL );
13 LFDS710_PAL_ASSERT( (lfds710_pal_uint_t) ss->top % LFDS710_PAL_ATOMIC_ISOLATION_IN_BYTES == 0 );
14 LFDS710_PAL_ASSERT( (lfds710_pal_uint_t) &ss->user_state % LFDS710_PAL_ATOMIC_ISOLATION_IN_BYTES == 0 );
15 // TRD : user_state can be NULL
17 ss->top[POINTER] = NULL;
20 ss->user_state = user_state;
22 lfds710_misc_internal_backoff_init( &ss->pop_backoff );
23 lfds710_misc_internal_backoff_init( &ss->push_backoff );
25 LFDS710_MISC_BARRIER_STORE;
27 lfds710_misc_force_store();