[testcases]增加volatile解决优化等级高的情况下,测试不通过的问题 (#7717)
This commit is contained in:
parent
b8796f55a5
commit
139d2b9fb9
|
@ -13,8 +13,8 @@
|
||||||
#include "rthw.h"
|
#include "rthw.h"
|
||||||
|
|
||||||
#define UTEST_NAME "irq_tc"
|
#define UTEST_NAME "irq_tc"
|
||||||
static uint32_t irq_count = 0;
|
static volatile uint32_t irq_count = 0;
|
||||||
static uint32_t max_get_nest_count = 0;
|
static volatile uint32_t max_get_nest_count = 0;
|
||||||
|
|
||||||
static void irq_callback()
|
static void irq_callback()
|
||||||
{
|
{
|
||||||
|
|
|
@ -32,7 +32,7 @@ static volatile rt_uint32_t tid3_delay_pass_flag = 0;
|
||||||
static volatile rt_uint32_t tid3_finish_flag = 0;
|
static volatile rt_uint32_t tid3_finish_flag = 0;
|
||||||
static volatile rt_uint32_t tid4_finish_flag = 0;
|
static volatile rt_uint32_t tid4_finish_flag = 0;
|
||||||
static volatile rt_uint32_t tid6_finish_flag = 0;
|
static volatile rt_uint32_t tid6_finish_flag = 0;
|
||||||
static 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 rt_uint32_t thread_yield_flag = 0;
|
||||||
|
|
Loading…
Reference in New Issue