fix:兼容性修改

This commit is contained in:
sherecho 2024-10-14 09:15:31 +08:00
parent 1347fb0cdf
commit 5a20291c55
3 changed files with 4 additions and 12 deletions

View File

@ -22,7 +22,7 @@
#define INVALID_PRIMARY_CORE_NUM 0xffu
#define portMIN_INTERRUPT_PRIORITY ( 255UL )
typedef uint32_t BaseType_t;
#if(USE_SMP==1u)
#if(USE_SMP >0u)
/* Multi-core */
#define portMAX_CORE_COUNT 2
//获取core ID

View File

@ -1,4 +1,4 @@
@.equ SMP, 1
.equ SMP, 1
.global port_int_disable
.global port_int_enable

View File

@ -410,14 +410,6 @@ __KNL__ int knl_is_self(k_task_t *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)
{
arg = arg; // make compiler happy
@ -428,11 +420,11 @@ __STATIC__ void knl_idle_entry(void *arg)
#if TOS_CFG_PWR_MGR_EN > 0u
pm_power_manager();
#endif
#if(USE_SMP==1u)
if(k_rdyq.highest_prio<K_TASK_PRIO_IDLE){
knl_sched();
}
#endif
}
}