RTThreadPreemptRestore-r0drv-generic.cpp revision e32ca735e5c44e6a7b1da893831b5ece66f377a9
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync/* $Id$ */
5b281ba489ca18f0380d7efc7a5108b606cce449vboxsync/** @file
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * IPRT - RTThreadPreemptRestore, Generic ring-0 driver implementation.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync */
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync/*
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * Copyright (C) 2008 Sun Microsystems, Inc.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync *
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * available from http://www.virtualbox.org. This file is free software;
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * you can redistribute it and/or modify it under the terms of the GNU
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * General Public License (GPL) as published by the Free Software
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync *
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * The contents of this file may alternatively be used under the terms
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * of the Common Development and Distribution License Version 1.0
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * VirtualBox OSE distribution, in which case the provisions of the
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * CDDL are applicable instead of those of the GPL.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync *
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * You may elect to license modified versions of this file under the
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * terms and conditions of either the GPL or the CDDL or both.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync *
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync * additional information or have any questions.
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync */
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync/*******************************************************************************
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync* Header Files *
590bfe12ce22cd3716448fbb9f4dc51664bfe5e2vboxsync*******************************************************************************/
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync#include <iprt/thread.h>
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync#include <iprt/assert.h>
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync
165b506f4c024dabd5a4caaeda31c66712d154eavboxsyncRTDECL(void) RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState)
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync{
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync AssertPtr(pState);
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync Assert(pState->uchDummy == 42);
2c19fa7a35e93931f995c196426585b16f8bf2c0vboxsync pState->uchDummy = 0;
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync}
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync
165b506f4c024dabd5a4caaeda31c66712d154eavboxsync