Changeset 87187 in vbox for trunk/src/VBox/Runtime/common/asm
- Timestamp:
- Jan 6, 2021 12:51:53 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142118
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/asm/asm-fake.cpp
r84992 r87187 209 209 } 210 210 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 238 211 RTDECL(uint8_t) ASMProbeReadByte(const void *pvByte) 239 212 {
Note:
See TracChangeset
for help on using the changeset viewer.