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>
This commit is contained in:
parent
808cca0efb
commit
a594ca7c8f
11 changed files with 28 additions and 22 deletions
|
@ -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 @@ static void appcpu_entry2(void)
|
|||
__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 @@ static void appcpu_start(void)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue