gcpu_main.c revision e3d60c9bd991a9826cbfa63b10595d44e123b9c4
/*
* 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.
*/
/*
* 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;
#define GCPU_MAX_CHIPID 32
/*
* 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.
*/
NULL);
NULL);
} else {
}
}
return (0);
}
void
{
return;
}
void
{ if (!gcpu_disable) {
}
}
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_mca_trap, /* cmi_mca_trap */
gcpu_cmci_trap, /* cmi_cmci_trap */
gcpu_msrinject, /* cmi_msrinject */
gcpu_hdl_poke, /* cmi_hdl_poke */
NULL, /* cmi_fini */
};
"Generic x86 CPU Module"
};
static struct modlinkage modlinkage = {
(void *)&modlcpu,
};
int
_init(void)
{
return (mod_install(&modlinkage));
}
int
{
}
int
_fini(void)
{
return (mod_remove(&modlinkage));
}