From: Josh Peterson Date: Wed, 1 Aug 2018 19:27:59 +0000 (+0300) Subject: Fix the build for Orbis and PSP2 X-Git-Tag: v8.0.0~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b64b702aa034b405d909b82aca7d55c25c37c454;p=gc Fix the build for Orbis and PSP2 (part of commit 0f9ef2d from Unity-Technologies/bdwgc) Issue #173 (bdwgc). * include/private/pthread_stop_world.h [!GC_OPENBSD_UTHREADS && !NACL] (thread_stop_info): Do not define last_stop_count if SN_TARGET_ORBIS or SN_TARGET_PSP2. * include/private/pthread_stop_world.h [!NACL && SN_TARGET_ORBIS] (thread_stop_info): Declare registers field. --- diff --git a/include/private/pthread_stop_world.h b/include/private/pthread_stop_world.h index 080b682c..4192737e 100644 --- a/include/private/pthread_stop_world.h +++ b/include/private/pthread_stop_world.h @@ -21,7 +21,8 @@ EXTERN_C_BEGIN struct thread_stop_info { -# if !defined(GC_OPENBSD_UTHREADS) && !defined(NACL) +# if !defined(GC_OPENBSD_UTHREADS) && !defined(NACL) \ + && !defined(SN_TARGET_ORBIS) && !defined(SN_TARGET_PSP2) volatile AO_t last_stop_count; /* The value of GC_stop_count when the thread */ /* last successfully handled a suspend signal. */ @@ -43,6 +44,9 @@ struct thread_stop_info { # define NACL_GC_REG_STORAGE_SIZE 20 # endif ptr_t reg_storage[NACL_GC_REG_STORAGE_SIZE]; +# elif defined(SN_TARGET_ORBIS) +# define ORBIS_GC_REG_STORAGE_SIZE 27 + word registers[ORBIS_GC_REG_STORAGE_SIZE]; /* used externally */ # endif };