Skip to content

Commit 978a379

Browse files
committed
Allow to disable ZEND_HIGH_HALF_KERNEL
1 parent e63cd0d commit 978a379

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_portability.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,9 @@ static zend_always_inline uint64_t ZEND_BYTES_SWAP64(uint64_t u)
873873
# define UINTPTR_WIDTH (CHAR_BITS * sizeof(uintptr_t))
874874
#endif
875875

876-
#if (defined(__linux__) && defined(__x86_64__)) \
877-
|| (defined(ZEND_WIN32) && defined(_M_AMD64))
876+
#if ((defined(__linux__) && defined(__x86_64__)) \
877+
|| (defined(ZEND_WIN32) && defined(_M_AMD64))) \
878+
&& !defined(NO_ZEND_HIGH_HALF_KERNEL)
878879
/* The kernel reserves the higher part of the address space for itself.
879880
* Therefore, we can assume that the higher bit of user space addresses is
880881
* never set. */

0 commit comments

Comments
 (0)