@@ -25,10 +25,10 @@ volatile struct {
25
25
} arc_cpu_init [CONFIG_MP_MAX_NUM_CPUS ];
26
26
27
27
/*
28
- * arc_cpu_wake_flag is used to sync up master core and slave cores
29
- * Slave core will spin for arc_cpu_wake_flag until master core sets
30
- * it to the core id of slave core. Then, slave core clears it to notify
31
- * master core that it's waken
28
+ * arc_cpu_wake_flag is used to sync up primary core and secondary cores
29
+ * Secondary core will spin for arc_cpu_wake_flag until primary core sets
30
+ * it to the core id of secondary core. Then, secondary core clears it to notify
31
+ * primary core that it's waken
32
32
*
33
33
*/
34
34
volatile uint32_t arc_cpu_wake_flag ;
@@ -50,13 +50,13 @@ void arch_cpu_start(int cpu_num, k_thread_stack_t *stack, int sz,
50
50
51
51
/* set the initial sp of target sp through arc_cpu_sp
52
52
* arc_cpu_wake_flag will protect arc_cpu_sp that
53
- * only one slave cpu can read it per time
53
+ * only one secondary cpu can read it per time
54
54
*/
55
55
arc_cpu_sp = K_KERNEL_STACK_BUFFER (stack ) + sz ;
56
56
57
57
arc_cpu_wake_flag = cpu_num ;
58
58
59
- /* wait slave cpu to start */
59
+ /* wait secondary cpu to start */
60
60
while (arc_cpu_wake_flag != 0U ) {
61
61
;
62
62
}
@@ -90,7 +90,7 @@ static void arc_connect_debug_mask_update(int cpu_num)
90
90
91
91
void arc_core_private_intc_init (void );
92
92
93
- /* the C entry of slave cores */
93
+ /* the C entry of secondary cores */
94
94
void arch_secondary_cpu_init (int cpu_num )
95
95
{
96
96
arch_cpustart_t fn ;
@@ -162,7 +162,7 @@ int arch_smp_init(void)
162
162
{
163
163
struct arc_connect_bcr bcr ;
164
164
165
- /* necessary master core init */
165
+ /* necessary primary core init */
166
166
_curr_cpu [0 ] = & (_kernel .cpus [0 ]);
167
167
168
168
bcr .val = z_arc_v2_aux_reg_read (_ARC_V2_CONNECT_BCR );
@@ -173,7 +173,7 @@ int arch_smp_init(void)
173
173
}
174
174
175
175
if (bcr .ipi ) {
176
- /* register ici interrupt, just need master core to register once */
176
+ /* register ici interrupt, just need primary core to register once */
177
177
z_arc_connect_ici_clear ();
178
178
IRQ_CONNECT (DT_IRQN (DT_NODELABEL (ici )),
179
179
DT_IRQ (DT_NODELABEL (ici ), priority ),
0 commit comments