Пример #1
0
/*
 * Setup the PC, SP, and GP of a secondary processor and start it
 * running!
 */
void prom_boot_secondary(int cpu, struct task_struct *idle)
{
	int retval;

	retval = cfe_cpu_start(cpu_logical_map(cpu), &smp_bootstrap,
			       __KSTK_TOS(idle),
			       (unsigned long)task_thread_info(idle), 0);
	if (retval != 0)
		printk("cfe_start_cpu(%i) returned %i\n" , cpu, retval);
}
Пример #2
0
int
platform_start_ap(int cpuid)
{
#ifdef CFE
    int error;

    if ((error = cfe_cpu_start(cpuid, mpentry, 0, 0, 0))) {
        printf("cfe_cpu_start error: %d\n", error);
        return (-1);
    } else {
        return (0);
    }
#else
    return (-1);
#endif	/* CFE */
}