fix:兼容性修改
This commit is contained in:
parent
1347fb0cdf
commit
5a20291c55
|
@ -22,7 +22,7 @@
|
||||||
#define INVALID_PRIMARY_CORE_NUM 0xffu
|
#define INVALID_PRIMARY_CORE_NUM 0xffu
|
||||||
#define portMIN_INTERRUPT_PRIORITY ( 255UL )
|
#define portMIN_INTERRUPT_PRIORITY ( 255UL )
|
||||||
typedef uint32_t BaseType_t;
|
typedef uint32_t BaseType_t;
|
||||||
#if(USE_SMP==1u)
|
#if(USE_SMP >0u)
|
||||||
/* Multi-core */
|
/* Multi-core */
|
||||||
#define portMAX_CORE_COUNT 2
|
#define portMAX_CORE_COUNT 2
|
||||||
//获取core ID
|
//获取core ID
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@.equ SMP, 1
|
.equ SMP, 1
|
||||||
.global port_int_disable
|
.global port_int_disable
|
||||||
.global port_int_enable
|
.global port_int_enable
|
||||||
|
|
||||||
|
|
|
@ -410,14 +410,6 @@ __KNL__ int knl_is_self(k_task_t *task)
|
||||||
{
|
{
|
||||||
return task == k_curr_task;
|
return task == k_curr_task;
|
||||||
}
|
}
|
||||||
|
|
||||||
__STATIC__ void knl_idle1_entry(void *arg)
|
|
||||||
{
|
|
||||||
arg = arg; // make compiler happy
|
|
||||||
while (K_TRUE) {
|
|
||||||
knl_sched();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
__STATIC__ void knl_idle_entry(void *arg)
|
__STATIC__ void knl_idle_entry(void *arg)
|
||||||
{
|
{
|
||||||
arg = arg; // make compiler happy
|
arg = arg; // make compiler happy
|
||||||
|
@ -428,11 +420,11 @@ __STATIC__ void knl_idle_entry(void *arg)
|
||||||
#if TOS_CFG_PWR_MGR_EN > 0u
|
#if TOS_CFG_PWR_MGR_EN > 0u
|
||||||
pm_power_manager();
|
pm_power_manager();
|
||||||
#endif
|
#endif
|
||||||
#if(USE_SMP==1u)
|
|
||||||
if(k_rdyq.highest_prio<K_TASK_PRIO_IDLE){
|
if(k_rdyq.highest_prio<K_TASK_PRIO_IDLE){
|
||||||
knl_sched();
|
knl_sched();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue