/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2010, Intel Corporation.
* All rights reserved.
*/
/*
* Generic x86 CPU Module
*
* This CPU module is used for generic x86 CPUs when Solaris has no other
* CPU-specific support module available. Code in this module should be the
* absolute bare-bones support and must be cognizant of both Intel and AMD etc.
*/
#include <sys/cpu_module_impl.h>
#include "gcpu.h"
/*
* Prevent generic cpu support from loading.
*/
int gcpu_disable = 0;
/*
* Our cmi_init entry point, called during startup of each cpu instance.
*/
int
{
return (ENOTSUP);
/*
* Allocate the state structure for this cpu. We will only
* allocate the bank logout areas in gcpu_mca_init once we
* know how many banks there are.
*/
/*
* Allocate a chipshared structure if no sibling cpu has already
* allocated it, but allow for the fact that a sibling core may
* be starting up in parallel.
*/
}
}
return (0);
}
/*
* deconfigure gcpu_init()
*/
void
{
return;
/*
* Keep shared data in cache for reuse.
*/
/* Release reference count held in gcpu_init(). */
}
void
{
if (gcpu_disable)
return;
#ifdef __xpv
/*
* All cpu handles are initialized so we can begin polling now.
* Furthermore, our virq mechanism requires that everything
* be run on cpu 0 so we can assure that by starting from here.
*/
#endif
}
void
{
if (gcpu_disable)
return;
#ifndef __xpv
/*
* All cpu handles are initialized only once all cpus
* are started, so we can begin polling post mp startup.
*/
#endif
}
#ifdef __xpv
#else
#endif
gcpu_init, /* cmi_init */
gcpu_post_startup, /* cmi_post_startup */
gcpu_post_mpstartup, /* cmi_post_mpstartup */
gcpu_faulted_enter, /* cmi_faulted_enter */
gcpu_faulted_exit, /* cmi_faulted_exit */
gcpu_mca_init, /* cmi_mca_init */
gcpu_msrinject, /* cmi_msrinject */
gcpu_fini, /* cmi_fini */
};
"Generic x86 CPU Module"
};
(void *)&modlcpu,
};
int
_init(void)
{
return (mod_install(&modlinkage));
}
int
{
}
int
_fini(void)
{
return (mod_remove(&modlinkage));
}