unfied: Tweak stack API parameters

- Reorders parameters where necessary

Change-Id: I0aa659515b71c8f2d6ed7fae47489ddcb10eb69f
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2016-10-17 11:48:43 -04:00 committed by Anas Nashif
commit 602e6a8ae7

View file

@ -556,7 +556,7 @@ extern void k_stack_init(struct k_stack *stack,
extern void k_stack_push(struct k_stack *stack, uint32_t data);
extern int k_stack_pop(struct k_stack *stack, uint32_t *data, int32_t timeout);
#define K_STACK_INITIALIZER(obj, stack_num_entries, stack_buffer) \
#define K_STACK_INITIALIZER(obj, stack_buffer, stack_num_entries) \
{ \
.wait_q = SYS_DLIST_STATIC_INIT(&obj.wait_q), \
.base = stack_buffer, \
@ -565,11 +565,12 @@ extern int k_stack_pop(struct k_stack *stack, uint32_t *data, int32_t timeout);
_DEBUG_TRACING_KERNEL_OBJECTS_INIT \
}
#define K_STACK_DEFINE(name, stack_num_entries) \
uint32_t __noinit _k_stack_buf_##name[stack_num_entries]; \
struct k_stack name = \
K_STACK_INITIALIZER(name, stack_num_entries, \
_k_stack_buf_##name); \
#define K_STACK_DEFINE(name, stack_num_entries) \
uint32_t __noinit \
_k_stack_buf_##name[stack_num_entries]; \
struct k_stack name = \
K_STACK_INITIALIZER(name, _k_stack_buf_##name, \
stack_num_entries)
/**
* workqueues