From 437c08c24537cde1fd54795782f94a575ce5ca87 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 13 Dec 2024 19:55:04 +0300 Subject: [PATCH] Add Serenity/aarch64 to gcconfig.h Issue #685 (bdwgc). * include/private/gcconfig.h [__aarch64__ && !ANY_BSD && !COSMO && !DARWIN && !LINUX && !KOS && !NN_BUILD_TARGET_PLATFORM_NX && !QNX && !_WIN32] (AARCH64, NOSYS, mach_type_known): Do not define if `SERENITY` is defined. * include/private/gcconfig.h [__aarch64__ && SERENITY] (AARCH64, mach_type_known): Define macro. --- include/private/gcconfig.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index bfc9e4170..06ce9c736 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -165,9 +165,10 @@ EXTERN_C_BEGIN /* Here we will rely upon arch-specific defines. */ # endif #endif -#if defined(__aarch64__) && !defined(ANY_BSD) && !defined(COSMO) \ - && !defined(DARWIN) && !defined(LINUX) && !defined(KOS) && !defined(QNX) \ - && !defined(NN_BUILD_TARGET_PLATFORM_NX) && !defined(_WIN32) +#if defined(__aarch64__) && !defined(ANY_BSD) && !defined(COSMO) \ + && !defined(DARWIN) && !defined(LINUX) && !defined(KOS) \ + && !defined(NN_BUILD_TARGET_PLATFORM_NX) && !defined(QNX) \ + && !defined(SERENITY) && !defined(_WIN32) # define AARCH64 # define NOSYS # define mach_type_known @@ -493,7 +494,8 @@ EXTERN_C_BEGIN #if defined(__aarch64__) \ && (defined(ANY_BSD) || defined(COSMO) || defined(DARWIN) \ - || defined(LINUX) || defined(KOS) || defined(QNX)) + || defined(LINUX) || defined(KOS) || defined(QNX) \ + || defined(SERENITY)) # define AARCH64 # define mach_type_known #elif defined(__arc__) && defined(LINUX) @@ -2085,6 +2087,9 @@ void *switch_get_mem(size_t lb); # ifdef QNX /* Nothing specific. */ # endif +# ifdef SERENITY +/* Nothing specific. */ +# endif # ifdef MSWIN32 /* UWP */ /* TODO: Enable MPROTECT_VDB */