Commit 15ed8ec7 authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

tests: use K_THREAD_STACK_DEFINE macros

parent dc5d935d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,8 +27,8 @@
#endif

/* stack used by the fibers */
static char __stack thread_one_stack[STACKSIZE];
static char __stack thread_two_stack[STACKSIZE];
static K_THREAD_STACK_DEFINE(thread_one_stack, STACKSIZE);
static K_THREAD_STACK_DEFINE(thread_two_stack, STACKSIZE);
static struct k_thread thread_one_data;
static struct k_thread thread_two_data;

+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ static u32_t helper_thread_iterations;
#define Y_STACK_SIZE    512
#define Y_PRIORITY      10

char __noinit __stack y_stack_area[Y_STACK_SIZE];
K_THREAD_STACK_DEFINE(y_stack_area, Y_STACK_SIZE);
static struct k_thread y_thread;

/**
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ typedef void * (*pfunc) (void *);

/* stack used by thread */
#ifdef CONFIG_OBJECTS_THREAD
static char __stack pStack[THREAD_STACK_SIZE];
static K_THREAD_STACK_DEFINE(pStack, THREAD_STACK_SIZE);
static struct k_thread objects_thread;
#endif

+2 −2
Original line number Diff line number Diff line
@@ -13,8 +13,8 @@

#include <string.h>

char __stack thread_stack1[STACK_SIZE];
char __stack thread_stack2[STACK_SIZE];
K_THREAD_STACK_DEFINE(thread_stack1, STACK_SIZE);
K_THREAD_STACK_DEFINE(thread_stack2, STACK_SIZE);
struct k_thread thread_data1;
struct k_thread thread_data2;

+2 −2
Original line number Diff line number Diff line
@@ -71,8 +71,8 @@ k_tid_t thread_mbox_async_put_receive_tid;

/* To time thread creation*/
#define STACK_SIZE 500
extern char __noinit __stack my_stack_area[STACK_SIZE];
extern char __noinit __stack my_stack_area_0[STACK_SIZE];
extern char my_stack_area[];
extern char my_stack_area_0[];
extern struct k_thread my_thread;
extern struct k_thread my_thread_0;

Loading