VirtualBox

Ignore:
Timestamp:
Jan 6, 2021 12:51:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142118
Message:

IPRT: Make sparc[64] and asm-fake.cpp use the generic ASMMem* implementations. bugref:9898

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/asm/asm-fake.cpp

    r84992 r87187  
    209209}
    210210
    211 RTDECL(void) ASMMemZeroPage(volatile void *pv)
    212 {
    213     uintptr_t volatile *puPtr = (uintptr_t volatile *)pv;
    214     uint32_t            cbLeft = PAGE_SIZE / sizeof(uintptr_t);
    215     while (cbLeft-- > 0)
    216         *puPtr++ = 0;
    217 }
    218 
    219 RTDECL(void) ASMMemZero32(volatile void *pv, size_t cb)
    220 {
    221     uint32_t volatile *pu32   = (uint32_t volatile *)pv;
    222     uint32_t           cbLeft = cb / sizeof(uint32_t);
    223     while (cbLeft-- > 0)
    224         *pu32++ = 0;
    225 }
    226 
    227 RTDECL(void) ASMMemFill32(volatile void *pv, size_t cb, uint32_t u32)
    228 {
    229     uint32_t volatile *pu32 = (uint32_t volatile *)pv;
    230     while (cb > 0)
    231     {
    232         *pu32 = u32;
    233         cb -= sizeof(uint32_t);
    234         pu32++;
    235     }
    236 }
    237 
    238211RTDECL(uint8_t) ASMProbeReadByte(const void *pvByte)
    239212{
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