VirtualBox

Changeset 103025 in vbox for trunk


Ignore:
Timestamp:
Jan 24, 2024 2:21:13 PM (8 months ago)
Author:
vboxsync
Message:

*: Replaced some ASMMemZero32 uses with RT_BZERO. bugref:10588

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/asm-mem.h

    r103017 r103025  
    132132DECLINLINE(void) ASMMemFill32(volatile void RT_FAR *pv, size_t cb, uint32_t u32) RT_NOTHROW_DEF
    133133{
     134    Assert(!(cb & 3));
     135    Assert(cb > 0);
    134136# if RT_INLINE_ASM_USES_INTRIN
    135137#  ifdef RT_ARCH_AMD64
  • trunk/include/iprt/asm.h

    r103006 r103025  
    62266226#endif
    62276227
     6228/** @todo Move ASMByteSwapU16, ASMByteSwapU32 and ASMByteSwapU64 in their own
     6229 *        header as it's a common reason for including asm.h. */
     6230
    62286231
    62296232/**
     
    63496352
    63506353
    6351 /** @defgroup grp_inline_bits   Bit Operations
     6354/** @defgroup grp_inline_bits   Bitmap Operations
     6355 *
     6356 * @todo Move these into a separate header, with standard IPRT prefix
     6357 *       (RTBitmapXxx).  Move the more complex (searched) stuff into C source
     6358 *       files.
     6359 *
    63526360 * @{
    63536361 */
     
    74607468#endif
    74617469
     7470/** @} */
     7471
     7472
     7473/** @defgroup grp_inline_bits   Bit Operations
     7474 * @{
     7475 */
    74627476
    74637477/**
  • trunk/src/VBox/Devices/Network/SrvIntNetR0.cpp

    r98103 r103025  
    52205220        if (RT_SUCCESS(rc))
    52215221        {
    5222             ASMMemZero32(pIf->pIntBufDefault, cbBuf); /** @todo I thought I specified these buggers as clearing the memory... */
     5222            RT_BZERO(pIf->pIntBufDefault, cbBuf); /** @todo I thought I specified these buggers as clearing the memory... */
    52235223
    52245224            pIf->pIntBuf   = pIf->pIntBufDefault;
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r99739 r103025  
    23712371     * Initialize the APIC ID register to xAPIC format.
    23722372     */
    2373     ASMMemZero32(&pXApicPage->id, sizeof(pXApicPage->id));
     2373    RT_BZERO(&pXApicPage->id, sizeof(pXApicPage->id));
    23742374    pXApicPage->id.u8ApicId = pVCpu->idCpu;
    23752375}
     
    24882488                 */
    24892489                PX2APICPAGE pX2ApicPage = VMCPU_TO_X2APICPAGE(pVCpu);
    2490                 ASMMemZero32(&pX2ApicPage->id, sizeof(pX2ApicPage->id));
     2490                RT_BZERO(&pX2ApicPage->id, sizeof(pX2ApicPage->id));
    24912491                pX2ApicPage->id.u32ApicId = pVCpu->idCpu;
    24922492
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r102987 r103025  
    17321732               Refer Intel spec. 20.3.3 "Software Interrupt Handling in Virtual-8086 mode"
    17331733               esp. Figure 20-5.*/
    1734             ASMMemZero32(pVM->hm.s.vmx.pRealModeTSS, sizeof(*pVM->hm.s.vmx.pRealModeTSS));
     1734            RT_BZERO(pVM->hm.s.vmx.pRealModeTSS, sizeof(*pVM->hm.s.vmx.pRealModeTSS));
    17351735            pVM->hm.s.vmx.pRealModeTSS->offIoBitmap = sizeof(*pVM->hm.s.vmx.pRealModeTSS);
    17361736
     
    21372137    pVM->hm.s.PatchTree          = 0;
    21382138    pVM->hm.s.fTprPatchingActive = false;
    2139     ASMMemZero32(pVM->hm.s.aPatches, sizeof(pVM->hm.s.aPatches));
     2139    RT_BZERO(pVM->hm.s.aPatches, sizeof(pVM->hm.s.aPatches));
    21402140}
    21412141
Note: See TracChangeset for help on using the changeset viewer.

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