From b64b702aa034b405d909b82aca7d55c25c37c454 Mon Sep 17 00:00:00 2001 From: Josh Peterson Date: Wed, 1 Aug 2018 22:27:59 +0300 Subject: [PATCH] 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. --- include/private/pthread_stop_world.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/private/pthread_stop_world.h b/include/private/pthread_stop_world.h index 080b682..4192737 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 }; -- 2.7.4