diff --git a/include/data/data.h b/include/data/data.h index 636d1ae..0a2bacd 100644 --- a/include/data/data.h +++ b/include/data/data.h @@ -42,6 +42,12 @@ #define L1_GLOBAL_DATA __attribute__((section(".data_l1"))) #define L1_DATA L1_GLOBAL_DATA +#ifdef USE_CLUSTER +#define RT_LOCAL_DATA L1_DATA +#else +#define RT_LOCAL_DATA FC_DATA +#endif + #endif @@ -54,7 +60,9 @@ #endif #endif - +#ifdef ARCHI_CLUSTER_NB_PE +#define ARCHI_NB_PE ARCHI_CLUSTER_NB_PE +#endif #include "alloc.h" diff --git a/include/pulp.h b/include/pulp.h index bf6df24..41a055c 100755 --- a/include/pulp.h +++ b/include/pulp.h @@ -53,6 +53,8 @@ void uart_close(int uart_id); int uart_write(int uart_id, void *buffer, uint32_t size); int uart_read(int uart_id, void *buffer, uint32_t size); +void synch_barrier(); + #endif diff --git a/init.sh b/init.sh index c85ec0c..e90f678 100644 --- a/init.sh +++ b/init.sh @@ -2,5 +2,4 @@ scriptDir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" -export PULPRT_HOME=$scriptDir -export PULP_SDK_HOME=$scriptDir \ No newline at end of file +export PULPRT_HOME=$scriptDir \ No newline at end of file diff --git a/kernel/cluster.c b/kernel/cluster.c index 212898f..5e9e172 100644 --- a/kernel/cluster.c +++ b/kernel/cluster.c @@ -35,6 +35,11 @@ static void pos_wait_forever() void cluster_entry_stub() { + + eu_evt_maskSet((1<