TRPMR0.cpp revision 274fa6f604b8c189c2872bf928f5557680e4a887
/* $Id$ */
/** @file
* TRPM - The Trap Monitor - HC Ring 0
*/
/*
* Copyright (C) 2006-2007 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_TRPM
#include "TRPMInternal.h"
/**
* Dispatches an interrupt that arrived while we were in the guest context.
*
* @param pVM The VM handle.
* @remark Must be called with interrupts disabled.
*/
{
AssertMsgReturnVoid(uActiveVector < 256, ("uActiveVector=%#x is invalid! (More assertions to come, please enjoy!)\n", uActiveVector));
/*
* Check if we're in long mode or not.
*/
{
return;
}
#endif
/*
* Get the handler pointer (16:32 ptr) / (16:48 ptr).
*/
ASMGetIDTR(&Idtr);
#if HC_ARCH_BITS == 32
#else
#endif
("The IDT entry (%d) is not 32-bit int gate! type1=%#x type2=%#x\n",
#if HC_ARCH_BITS == 32
#else /* 64-bit: */
{
return;
}
#endif
/*
* Dispatch it.
*/
}