RTMpPokeCpu-r0drv-solaris.c revision a5bdd7a3f7740a413f3f342407a534504f2a566b
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync/* $Id$ */
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync/** @file
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * IPRT - RTMpPokeCpu, Solaris Implementation.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync */
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync/*
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * Copyright (C) 2009 Sun Microsystems, Inc.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync *
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * available from http://www.virtualbox.org. This file is free software;
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * General Public License (GPL) as published by the Free Software
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync *
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * The contents of this file may alternatively be used under the terms
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * of the Common Development and Distribution License Version 1.0
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * VirtualBox OSE distribution, in which case the provisions of the
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * CDDL are applicable instead of those of the GPL.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync *
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * You may elect to license modified versions of this file under the
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * terms and conditions of either the GPL or the CDDL or both.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync *
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync * additional information or have any questions.
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync */
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync/*******************************************************************************
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync* Header Files *
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync*******************************************************************************/
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync#include "the-solaris-kernel.h"
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync#include <iprt/mp.h>
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync#include <iprt/err.h>
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsyncRTDECL(int) RTMpPokeCpu(RTCPUID idCpu)
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync{
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync if (idCpu >= RTMpGetCount())
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync return VERR_CPU_NOT_FOUND;
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync poke_cpu(idCpu);
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync return VINF_SUCCESS;
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync}
a5bdd7a3f7740a413f3f342407a534504f2a566bvboxsync