Ticket #16290: patch-libgc-darwin_stop_world.c.diff
File patch-libgc-darwin_stop_world.c.diff, 1.0 KB (added by neil_mayhew@…, 16 years ago) |
---|
-
libgc/darwin_stop_world.c
105 105 if(r != KERN_SUCCESS) ABORT("thread_get_state failed"); 106 106 107 107 #if defined(I386) 108 #if defined(_STRUCT_X86_EXCEPTION_STATE32)108 #if __DARWIN_UNIX03 109 109 lo = state.__esp; 110 110 111 111 GC_push_one(state.__eax); … … 127 127 GC_push_one(state.ebp); 128 128 #endif 129 129 #elif defined(POWERPC) 130 #if defined(_STRUCT_PPC_EXCEPTION_STATE)130 #if __DARWIN_UNIX03 131 131 lo = (void*)(state.__r1 - PPC_RED_ZONE_SIZE); 132 132 133 133 GC_push_one(state.__r0); … … 270 270 (natural_t *)&info, &outCount); 271 271 if(r != KERN_SUCCESS) continue; 272 272 273 #if defined(_STRUCT_PPC_EXCEPTION_STATE)273 #if __DARWIN_UNIX03 274 274 lo = (void*)(info.__r1 - PPC_RED_ZONE_SIZE); 275 275 hi = (ptr_t)FindTopOfStack(info.__r1); 276 276 … … 350 350 (natural_t *)&info, &outCount); 351 351 if(r != KERN_SUCCESS) continue; 352 352 353 #if defined(_STRUCT_X86_EXCEPTION_STATE32)353 #if __DARWIN_UNIX03 354 354 lo = (void*)info.__esp; 355 355 hi = (ptr_t)FindTopOfStack(info.__esp); 356 356