File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
target/snitch_cluster/sw/runtime Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include <math.h>
18
18
19
+ #define SNRT_BROADCAST_MASK ((SNRT_CLUSTER_NUM - 1) * SNRT_CLUSTER_OFFSET)
20
+
19
21
//================================================================================
20
22
// Mutex functions
21
23
//================================================================================
@@ -76,7 +78,7 @@ inline void snrt_mutex_release(volatile uint32_t *pmtx) {
76
78
//================================================================================
77
79
78
80
inline void snrt_wake_all (uint32_t core_mask ) {
79
- #ifdef SUPPORTS_MULTICAST
81
+ #ifdef SNRT_SUPPORTS_MULTICAST
80
82
// Multicast cluster interrupt to every other cluster's core
81
83
// Note: we need to address another cluster's address space
82
84
// because the cluster XBAR has not been extended to support
@@ -85,7 +87,7 @@ inline void snrt_wake_all(uint32_t core_mask) {
85
87
uintptr_t addr = (uintptr_t )snrt_cluster_clint_set_ptr () -
86
88
SNRT_CLUSTER_OFFSET * snrt_cluster_idx ();
87
89
if (snrt_cluster_idx () == 0 ) addr += SNRT_CLUSTER_OFFSET ;
88
- snrt_enable_multicast (BCAST_MASK_ALL );
90
+ snrt_enable_multicast (SNRT_BROADCAST_MASK );
89
91
* ((uint32_t * )addr ) = core_mask ;
90
92
snrt_disable_multicast ();
91
93
#else
Original file line number Diff line number Diff line change 12
12
#define SNRT_TCDM_SIZE (CLUSTER_BOOTROM_BASE_ADDR - CLUSTER_TCDM_BASE_ADDR)
13
13
#define SNRT_CLUSTER_OFFSET ${ cfg[' cluster' ][' cluster_base_offset' ]}
14
14
15
+ #define SNRT_SUPPORTS_MULTICAST ${ cfg[' cluster' ][' enable_multicast' ]}
16
+
15
17
// Software configuration
16
18
#define SNRT_LOG2_STACK_SIZE 10
Original file line number Diff line number Diff line change 7
7
#include <stddef.h>
8
8
#include <stdint.h>
9
9
10
- #define SUPPORTS_MULTICAST
11
- #define BCAST_MASK_ALL 0x000C0000
12
10
// Forward declarations
13
11
#include "alloc_decls.h"
14
12
#include "cls_decls.h"
You can’t perform that action at this time.
0 commit comments