VirtualBox

Changeset 108668 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Mar 20, 2025 5:17:46 PM (4 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168081
Message:

Additions/common/VBoxGuest/lib/testcase/tstVbglR0PhysHeap-1.cpp: Make it work for hosts where we don't know the host page size when building, bugref:10391

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/testcase/tstVbglR0PhysHeap-1.cpp

    r106061 r108668  
    5555#include <iprt/memobj.h>
    5656#include "../VBoxGuestR0LibInternal.h"
     57#if defined(RT_OS_LINUX) && defined(RT_ARCH_ARM64)
     58# undef PAGE_SIZE
     59# undef PAGE_OFFSET_MASK
     60# undef PAGE_SHIFT
     61# define PAGE_SIZE _4K /* Assume a page size of 4KiB, the real page size doesn't matter for this testcase. */
     62# define PAGE_OFFSET_MASK ((uintptr_t)(PAGE_SIZE - 1))
     63# define PAGE_SHIFT 12
     64#endif
    5765
    5866
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