2 #include "lfds700_stack_internal.h"
8 /****************************************************************************/
9 void lfds700_stack_init_valid_on_current_logical_core( struct lfds700_stack_state *ss, void *user_state )
11 LFDS700_PAL_ASSERT( ss != NULL );
12 LFDS700_PAL_ASSERT( (lfds700_pal_uint_t) ss->top % LFDS700_PAL_ATOMIC_ISOLATION_IN_BYTES == 0 );
13 LFDS700_PAL_ASSERT( (lfds700_pal_uint_t) &ss->user_state % LFDS700_PAL_ATOMIC_ISOLATION_IN_BYTES == 0 );
14 // TRD : user_state can be NULL
16 ss->top[POINTER] = NULL;
19 ss->user_state = user_state;
21 LFDS700_MISC_BARRIER_STORE;
23 lfds700_misc_force_store();