|
@@ -13,7 +13,7 @@
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
#include "utest.h"
|
|
#include "utest.h"
|
|
|
|
|
|
-#define THREAD_STACK_SIZE 512
|
|
|
|
|
|
+#define THREAD_STACK_SIZE UTEST_THR_STACK_SIZE
|
|
#define THREAD_TIMESLICE 10
|
|
#define THREAD_TIMESLICE 10
|
|
|
|
|
|
rt_align(RT_ALIGN_SIZE)
|
|
rt_align(RT_ALIGN_SIZE)
|
|
@@ -35,12 +35,12 @@ static volatile rt_uint32_t tid6_finish_flag = 0;
|
|
static volatile rt_uint32_t thread5_source = 0;
|
|
static volatile rt_uint32_t thread5_source = 0;
|
|
|
|
|
|
#ifndef RT_USING_SMP
|
|
#ifndef RT_USING_SMP
|
|
- static rt_uint32_t thread_yield_flag = 0;
|
|
|
|
|
|
+ static volatile rt_uint32_t thread_yield_flag = 0;
|
|
#endif
|
|
#endif
|
|
-static rt_uint32_t entry_idle_hook_times = 0;
|
|
|
|
|
|
+static volatile rt_uint32_t entry_idle_hook_times = 0;
|
|
static rt_thread_t __current_thread;
|
|
static rt_thread_t __current_thread;
|
|
static rt_uint8_t change_priority;
|
|
static rt_uint8_t change_priority;
|
|
-static rt_uint32_t count = 0;
|
|
|
|
|
|
+static volatile rt_uint32_t count = 0;
|
|
|
|
|
|
void thread1_entry(void *param)
|
|
void thread1_entry(void *param)
|
|
{
|
|
{
|