VirtualBox

Changeset 29274 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 9, 2010 11:22:59 PM (15 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Adjusted RT_VALID_PTR for solaris.sparc64, seems the docs weren't matching real life or I misread something. Just adjusted the limits to make it work for now, leaving it for a rainy day.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r29266 r29274  
    18081808#  if defined(RT_OS_SOLARIS)
    18091809/** Sparc64 user mode: According to Figure 9.4 in solaris internals */
    1810 #   define RT_VALID_PTR(ptr)    ( (uintptr_t)(ptr) + 0x80004000U >= 0x80004000U + 0x100000000ULL )
     1810/** @todo #   define RT_VALID_PTR(ptr)    ( (uintptr_t)(ptr) + 0x80004000U >= 0x80004000U + 0x100000000ULL ) - figure this. */
     1811#   define RT_VALID_PTR(ptr)    ( (uintptr_t)(ptr) + 0x80000000U >= 0x80000000U + 0x100000000ULL )
    18111812#  else
    18121813#   error "Port me"
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