Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/arch/xtensa/lib/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int arch_cpu_enable_core(int id)

#if CONFIG_NO_SLAVE_CORE_ROM
/* unpack dynamic vectors if it is the first slave core */
if (active_cores_mask == 0) {
if (active_cores_mask == BIT(PLATFORM_MASTER_CORE_ID)) {
alloc_shared_slave_cores_objects();
unpack_dynamic_vectors();
}
Expand Down Expand Up @@ -121,7 +121,7 @@ void arch_cpu_disable_core(int id)
active_cores_mask ^= (1 << id);
#if CONFIG_NO_SLAVE_CORE_ROM
/* free shared dynamic vectors it was the last slave core */
if (active_cores_mask == 0) {
if (active_cores_mask == BIT(PLATFORM_MASTER_CORE_ID)) {
rfree(shared_vecbase_ptr);
shared_vecbase_ptr = NULL;
}
Expand Down