eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync/* $Id$ */
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync/** @file
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * IPRT - RTThreadPreemptRestore, Generic ring-0 driver implementation.
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync */
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync/*
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2008-2010 Oracle Corporation
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync *
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * available from http://www.virtualbox.org. This file is free software;
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * you can redistribute it and/or modify it under the terms of the GNU
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * General Public License (GPL) as published by the Free Software
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync *
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * The contents of this file may alternatively be used under the terms
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * of the Common Development and Distribution License Version 1.0
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * VirtualBox OSE distribution, in which case the provisions of the
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * CDDL are applicable instead of those of the GPL.
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync *
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * You may elect to license modified versions of this file under the
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync * terms and conditions of either the GPL or the CDDL or both.
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync */
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync/*******************************************************************************
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync* Header Files *
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync*******************************************************************************/
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync#include <iprt/thread.h>
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync#include "internal/iprt.h"
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync#include <iprt/assert.h>
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsyncRTDECL(void) RTThreadPreemptRestore(PRTTHREADPREEMPTSTATE pState)
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync{
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync AssertPtr(pState);
4589067b02bb33c477d399abc0f999e5d3a8c146vboxsync Assert(pState->u32Reserved == 42);
4589067b02bb33c477d399abc0f999e5d3a8c146vboxsync pState->u32Reserved = 0;
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync}
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncRT_EXPORT_SYMBOL(RTThreadPreemptRestore);
eac7f6a9d289691723e12e02061b5cf51a6bea58vboxsync