hal: put cpu_ll_get_core_id to IRAM

This commit is contained in:
morris
2021-01-05 15:11:43 +08:00
parent 9e7d2c0065
commit 1f9629da9f
2 changed files with 3 additions and 2 deletions

View File

@@ -30,7 +30,7 @@
extern "C" {
#endif
static inline int cpu_ll_get_core_id(void)
static inline int IRAM_ATTR cpu_ll_get_core_id(void)
{
#if SOC_CPU_CORES_NUM == 1
return 0; // No need to check core ID on single core hardware