kernel: cleanup and formally define CPU start fn
The "key" parameter is legacy, remove it.
Add a typedef for the expected function pointer type.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
diff --git a/soc/xtensa/esp32/esp32-mp.c b/soc/xtensa/esp32/esp32-mp.c
index 1892b61..4eb8960 100644
--- a/soc/xtensa/esp32/esp32-mp.c
+++ b/soc/xtensa/esp32/esp32-mp.c
@@ -24,7 +24,7 @@
struct cpustart_rec {
int cpu;
- void (*fn)(int, void *);
+ arch_cpustart_t fn;
char *stack_top;
void *arg;
int vecbase;
@@ -93,7 +93,7 @@
__asm__ volatile("wsr.MISC0 %0" : : "r"(cpu));
*start_rec->alive = 1;
- start_rec->fn(ps, start_rec->arg);
+ start_rec->fn(start_rec->arg);
}
/* Defines a locally callable "function" named _stack-switch(). The
@@ -191,7 +191,7 @@
}
void arch_start_cpu(int cpu_num, k_thread_stack_t *stack, int sz,
- void (*fn)(int, void *), void *arg)
+ arch_cpustart_t fn, void *arg)
{
volatile struct cpustart_rec sr;
int vb;