VirtualBox

Changeset 101644 in vbox for trunk


Ignore:
Timestamp:
Oct 30, 2023 9:27:30 AM (15 months ago)
Author:
vboxsync
Message:

ValidationKit/utils/cpu-alloc-all-mem: Allow building on linux.arm64, bugref:10541

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/cpu/cpu-alloc-all-mem.cpp

    r98103 r101644  
    4646#include <iprt/param.h>
    4747#include <iprt/string.h>
     48#include <iprt/system.h>
    4849#include <iprt/time.h>
    4950
     
    7172static bool checkList(PRTLISTNODE pHead)
    7273{
     74    uint32_t cbPage = RTSystemGetPageSize();
     75
    7376    size_t iPageSeq  = 0;
    7477    size_t iAllocSeq = 0;
     
    8588            RTTESTI_CHECK_RET(*pu == iPageSeq, false);
    8689            iPageSeq++;
    87             pu += PAGE_SIZE / sizeof(size_t);
     90            pu += cbPage / sizeof(size_t);
    8891        }
    8992        iAllocSeq++;
     
    9699{
    97100    RTTestSub(hTest, "Allocate all memory");
     101
     102    uint32_t cbPage = RTSystemGetPageSize();
    98103
    99104    RTLISTANCHOR AllocHead;
     
    129134            {
    130135                *pu = iPageSeq++;
    131                 pu += PAGE_SIZE / sizeof(size_t);
     136                pu += cbPage / sizeof(size_t);
    132137            }
    133138            uint64_t const uEndTS  = RTTimeNanoTS();
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