diff options
-rw-r--r-- | Zend/Zend.m4 | 3 | ||||
-rw-r--r-- | Zend/zend_execute.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index a44a59bfc2..71c602b5f0 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -362,6 +362,9 @@ if test "$ZEND_GCC_GLOBAL_REGS" != "no"; then #elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__) # define ZEND_VM_FP_GLOBAL_REG "r28" # define ZEND_VM_IP_GLOBAL_REG "r29" +#elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__) +# define ZEND_VM_FP_GLOBAL_REG "x27" +# define ZEND_VM_IP_GLOBAL_REG "x28" #else # error "global register variables are not supported" #endif diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 7148957a6c..75169cafeb 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -56,6 +56,9 @@ # elif defined(__IBMC__) && ZEND_GCC_VERSION >= 4002 && defined(__powerpc64__) # define ZEND_VM_FP_GLOBAL_REG "r28" # define ZEND_VM_IP_GLOBAL_REG "r29" +# elif defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(__aarch64__) +# define ZEND_VM_FP_GLOBAL_REG "x27" +# define ZEND_VM_IP_GLOBAL_REG "x28" # endif #endif |