time-r0drv-nt.cpp revision 1319c68f8bf1c1195c93ecf9acccf19354d91ba8
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * innotek Portable Runtime - Time, Ring-0 Driver, Nt.
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * Copyright (C) 2007 innotek GmbH
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * available from http://www.virtualbox.org. This file is free software;
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * you can redistribute it and/or modify it under the terms of the GNU
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * General Public License as published by the Free Software Foundation,
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * distribution. VirtualBox OSE is distributed in the hope that it will
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync * be useful, but WITHOUT ANY WARRANTY of any kind.
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync/*******************************************************************************
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync* Header Files *
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync*******************************************************************************/
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync InterruptTime.HighPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High1Time;
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync InterruptTime.LowPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.LowPart;
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->InterruptTime.High2Time != InterruptTime.HighPart);
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync SystemTime.HighPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->SystemTime.High1Time;
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync SystemTime.LowPart = ((KUSER_SHARED_DATA volatile *)SharedUserData)->SystemTime.LowPart;
1319c68f8bf1c1195c93ecf9acccf19354d91ba8vboxsync } while (((KUSER_SHARED_DATA volatile *)SharedUserData)->SystemTime.High2Time != SystemTime.HighPart);