VirtualBox

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


Ignore:
Timestamp:
Mar 11, 2011 2:50:45 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70526
Message:

SUPDrv,IPRT,++: Enabled the code for supporting up to 256 host CPUs/cores/threads.

Location:
trunk/src/VBox/Runtime
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/time/timesupA.mac

    r36254 r36262  
    9797    ; pGipCpu = &pGip->aCPU[pGip->aiCpuFromApicId[u8ApicId]];
    9898    shr     ebx, 24
    99  %ifdef SUP_WITH_LOTS_OF_CPUS
    10099    movzx   ebx, word [esi + ebx * 2 + SUPGLOBALINFOPAGE.aiCpuFromApicId]
    101  %else
    102     and     ebx, SUPGLOBALINFOPAGE_CPUS - 1
    103  %endif
    104100    mov     eax, SUPGIPCPU_size
    105101    mul     ebx
     
    523519    ; pGipCpu = &pGip->aCPU[pGip->aiCpuFromApicId[u8ApicId]];
    524520    shr     ebx, 24
    525  %ifdef SUP_WITH_LOTS_OF_CPUS
    526521    movzx   eax, word [pGip + rbx * 2 + SUPGLOBALINFOPAGE.aiCpuFromApicId]
    527  %else
    528     mov     eax, ebx
    529     and     eax, SUPGLOBALINFOPAGE_CPUS - 1
    530  %endif
    531522    imul    eax, SUPGIPCPU_size
    532523    lea     pGipCPU, [pGip + rax + SUPGLOBALINFOPAGE.aCPUs]
  • trunk/src/VBox/Runtime/common/time/timesupref.h

    r36254 r36262  
    6464#ifdef ASYNC_GIP
    6565        uint8_t    u8ApicId = ASMGetApicId();
    66 # ifdef SUP_WITH_LOTS_OF_CPUS
    6766        PSUPGIPCPU pGipCpu = &pGip->aCPUs[pGip->aiCpuFromApicId[u8ApicId]];
    68 # else
    69         PSUPGIPCPU pGipCpu = &pGip->aCPUs[u8ApicId & (SUPGLOBALINFOPAGE_CPUS - 1)];
    70 # endif
    7167#else
    7268        PSUPGIPCPU pGipCpu = &pGip->aCPUs[0];
  • trunk/src/VBox/Runtime/r0drv/nt/initterm-r0drv-nt.cpp

    r36232 r36262  
    8383#endif
    8484    RTCpuSetEmpty(&g_rtMpNtCpuSet);
    85 #ifdef RT_WITH_LOTS_OF_CPUS
    86 # error "port me"
    87 #endif
    8885    RTCpuSetFromU64(&g_rtMpNtCpuSet, ActiveProcessors);
     86/** @todo Port to W2K8 with > 64 cpus/threads. */
    8987
    9088#ifdef IPRT_TARGET_NT4
  • trunk/src/VBox/Runtime/r3/win/mp-win.cpp

    r36232 r36262  
    9696    SYSTEM_INFO SysInfo;
    9797    GetSystemInfo(&SysInfo);
    98 #ifdef RT_WITH_LOTS_OF_CPUS
    99 # error "port me"
    100 #endif
     98/** @todo port to W2K8 / W7 w/ > 64 CPUs & grouping. */
    10199    return RTCpuSetFromU64(pSet, SysInfo.dwActiveProcessorMask);
    102100}
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