Skip to content

Commit

Permalink
Add Serenity/aarch64 to gcconfig.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ivmai committed Dec 13, 2024
1 parent 322db3a commit 437c08c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions include/private/gcconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 437c08c

Please sign in to comment.