VirtualBox

Changeset 5328

Show
Ignore:
Timestamp:
10/16/07 14:39:14 (1 year ago)
Author:
vboxsync
Message:

Fixed VALID_PTR for 64-bit Solaris.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r5104 r5328  
    11811181#   define VALID_PTR(ptr)   (   (uintptr_t)(ptr) >= _4G \ 
    11821182                             && !((uintptr_t)(ptr) & 0xffff800000000000ULL) ) 
     1183#  elif defined(RT_OS_SOLARIS) /* The kernel only used the top 2TB, but keep it simple. */ 
     1184#   define VALID_PTR(ptr)   (   (uintptr_t)(ptr) + 0x1000U >= 0x2000U \ 
     1185                             && (   ((uintptr_t)(ptr) & 0xffff800000000000ULL) == 0xffff800000000000ULL \ 
     1186                                 || ((uintptr_t)(ptr) & 0xffff800000000000ULL) == 0) ) 
    11831187#  else 
    11841188#   define VALID_PTR(ptr)   (   (uintptr_t)(ptr) + 0x1000U >= 0x2000U \ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy