Browse Source

Fix for iOS armv7 build.

woollybah 10 năm trước cách đây
mục cha
commit
c28d8f9eb4
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      blitz.mod/bdwgc/darwin_stop_world.c

+ 5 - 1
blitz.mod/bdwgc/darwin_stop_world.c

@@ -175,7 +175,11 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p,
         if (unified_state.ash.flavor != ARM_THREAD_STATE32) {
           ABORT("unified_state flavor should be ARM_THREAD_STATE32");
         }
-        state = unified_state.ts_32;
+#       if defined(ARM_UNIFIED_THREAD_STATE)
+          state = unified_state;
+#       else
+          state = unified_state.ts_32;
+#       endif
       } else
 #   endif
     /* else */ {