/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/promif_impl.h>
#include <sys/machsystm.h>
#include <sys/hypervisor_api.h>
extern int (*prom_cif_handler)(void *);
extern int cif_cpu_mp_ready;
int
promif_set_mmfsa_traptable(void *p)
{
/*
* We use the same trap table for the rtba as well.
*/
/*
* if cif_cpu_mp_ready is not set the prom is still
* setting the mmfsa and trap table. Set the rtba
* after the prom cif call.
*/
if (!cif_cpu_mp_ready) {
ret = (*prom_cif_handler)(p);
return (ret);
}
return (-1);
}
}
return (0);
}
int
promif_start_cpu(void *p)
{
int cpuid;
int arg;
int rv;
if (!cif_cpu_mp_ready)
return ((*prom_cif_handler)(p));
panic("promif_start_cpu: failed to start cpu %d (%d)\n",
}
return (0);
}