VirtualBox

Changeset 50641 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Feb 27, 2014 8:21:45 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92535
Message:

RTMpGetDescription: Made it accept NIL_RTCPUID as indicating the current cpu.

Location:
trunk/src/VBox/Runtime/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTMpGetDescription-generic-stub.cpp

    r44529 r50641  
    55
    66/*
    7  * Copyright (C) 2009-2010 Oracle Corporation
     7 * Copyright (C) 2009-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3838    static const char s_szUnknown[] = "Unknown";
    3939
    40     if (!RTMpIsCpuOnline(idCpu))
     40    if (idCpu != NIL_RTCPUID && !RTMpIsCpuOnline(idCpu))
    4141        return RTMpIsCpuPossible(idCpu)
    4242             ? VERR_CPU_OFFLINE
  • trunk/src/VBox/Runtime/generic/RTMpGetDescription-generic.cpp

    r46633 r50641  
    55
    66/*
    7  * Copyright (C) 2009-2010 Oracle Corporation
     7 * Copyright (C) 2009-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6060     * Check that the specified cpu is valid & online.
    6161     */
    62     if (!RTMpIsCpuOnline(idCpu))
     62    if (idCpu != NIL_RTCPUID && !RTMpIsCpuOnline(idCpu))
    6363        return RTMpIsCpuPossible(idCpu)
    6464             ? VERR_CPU_OFFLINE
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette