Fixed regression

This commit is contained in:
Germain Haugou 2020-01-23 12:37:58 +01:00
parent 5ef7ff3157
commit ea1c172836

View file

@ -39,6 +39,8 @@ static void pos_wait_forever()
static void cluster_core_init() static void cluster_core_init()
{ {
eu_evt_maskSet((1<<PULP_DISPATCH_EVENT) | (1<<PULP_MUTEX_EVENT) | (1<<PULP_HW_BAR_EVENT)); eu_evt_maskSet((1<<PULP_DISPATCH_EVENT) | (1<<PULP_MUTEX_EVENT) | (1<<PULP_HW_BAR_EVENT));
eu_bar_setup(eu_bar_addr(0), (1<<ARCHI_CLUSTER_NB_PE) - 1);
} }
void cluster_entry_stub() void cluster_entry_stub()
@ -71,8 +73,6 @@ void cluster_start(int cid, int (*entry)())
// Activate icache // Activate icache
hal_icache_cluster_enable(cid); hal_icache_cluster_enable(cid);
eu_bar_setup(eu_bar_addr(0), (1<<ARCHI_CLUSTER_NB_PE) - 1);
if (!hal_is_fc()) if (!hal_is_fc())
{ {
cluster_core_init(); cluster_core_init();