intrq.c revision 1ae0874509b6811fdde1dfd46f0d93fd09867a3f
/*
* 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/machsystm.h>
#include <sys/machcpuvar.h>
#include <vm/hat_sfmmu.h>
#include <sys/hypervisor_api.h>
void
{
}
void
{
int cpu_list_size;
/*
* Allocate mondo data for xcalls.
*/
/*
* Allocate a percpu list of NCPU for xcalls
*/
if (cpu_list_size < INTR_REPORT_SIZE)
/*
* va_to_pa() is too expensive to call for every crosscall
* so we do it here at init time and save it in machcpu.
*/
/*
* Allocate sun4v interrupt and error queues.
*/
/* Allocate resumable queue and its kernel buffer */
/* zero out the memory */
/* Allocate nonresumable queue here */
/* zero out the memory */
}
void
{
int cpu_list_size;
/*
* Free mondo data for xcalls.
*/
if (mcpup->mondo_data) {
}
/*
* Free percpu list of NCPU for xcalls
*/
if (cpu_list_size < INTR_REPORT_SIZE)
}
/*
* Free sun4v interrupt and error queues.
*/
mcpup->cpu_q_size = 0;
}
mcpup->dev_q_size = 0;
}
mcpup->cpu_rq_size = 0;
}
if (mcpup->cpu_nrq_va) {
mcpup->cpu_nrq_size = 0;
}
}