]> granicus.if.org Git - gc/commitdiff
Add incremental GC support for Darwin/arm64
authorIvan Maidanski <ivmai@mail.ru>
Tue, 17 Mar 2015 22:06:02 +0000 (01:06 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 17 Mar 2015 22:06:02 +0000 (01:06 +0300)
* os_dep.c (DARWIN_EXC_STATE, DARWIN_EXC_STATE_COUNT,
DARWIN_EXC_STATE_T, DARWIN_EXC_STATE_DAR): Define for AARCH64 target.

os_dep.c

index a362498abe52f5b96242ee782c93c56fad83dd5c..f62d4ed6d9f434ed6dc3ff468c9f71b13522b5a7 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -4269,6 +4269,11 @@ STATIC kern_return_t GC_forward_exception(mach_port_t thread, mach_port_t task,
 # define DARWIN_EXC_STATE_COUNT   ARM_EXCEPTION_STATE_COUNT
 # define DARWIN_EXC_STATE_T       arm_exception_state_t
 # define DARWIN_EXC_STATE_DAR     THREAD_FLD(far)
+#elif defined(AARCH64)
+# define DARWIN_EXC_STATE         ARM_EXCEPTION_STATE64
+# define DARWIN_EXC_STATE_COUNT   ARM_EXCEPTION_STATE64_COUNT
+# define DARWIN_EXC_STATE_T       arm_exception_state64_t
+# define DARWIN_EXC_STATE_DAR     THREAD_FLD(far)
 #elif defined(POWERPC)
 # if CPP_WORDSZ == 32
 #   define DARWIN_EXC_STATE       PPC_EXCEPTION_STATE