From 8f011d3edaed50a40c92b74e2923f6786d0c1a4c Mon Sep 17 00:00:00 2001 From: Tom Everton Date: Mon, 23 Mar 2026 11:21:57 +0000 Subject: [PATCH] psm: add tvOS to Apple platform checks in assembly files The Mach-O symbol naming convention (underscore-prefixed symbols) applies to all Apple platforms, but the preprocessor guards in the assembly files only checked for darwin, macos, and ios. This adds tvos so that psm produces correct symbol names when targeting aarch64-apple-tvos and similar tvOS targets. --- psm/src/arch/aarch_aapcs64.s | 2 +- psm/src/arch/arm_aapcs.s | 2 +- psm/src/arch/x86.s | 2 +- psm/src/arch/x86_64.s | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/psm/src/arch/aarch_aapcs64.s b/psm/src/arch/aarch_aapcs64.s index b6a2e93..656901b 100644 --- a/psm/src/arch/aarch_aapcs64.s +++ b/psm/src/arch/aarch_aapcs64.s @@ -3,7 +3,7 @@ .text -#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) +#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) || defined(CFG_TARGET_OS_tvos) #define GLOBL(fnname) .globl _##fnname #define TYPE(fnname) diff --git a/psm/src/arch/arm_aapcs.s b/psm/src/arch/arm_aapcs.s index 3a01ae0..d95b80f 100644 --- a/psm/src/arch/arm_aapcs.s +++ b/psm/src/arch/arm_aapcs.s @@ -4,7 +4,7 @@ .text .syntax unified -#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) +#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) || defined(CFG_TARGET_OS_tvos) #define GLOBL(fnname) .globl _##fnname #define THUMBTYPE(fnname) .thumb_func _##fnname diff --git a/psm/src/arch/x86.s b/psm/src/arch/x86.s index d4b7b39..2a9e83c 100644 --- a/psm/src/arch/x86.s +++ b/psm/src/arch/x86.s @@ -4,7 +4,7 @@ .text -#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) +#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) || defined(CFG_TARGET_OS_tvos) #define GLOBL(fnname) .globl _##fnname #define TYPE(fnname) diff --git a/psm/src/arch/x86_64.s b/psm/src/arch/x86_64.s index 3c876d0..5b1b5f2 100644 --- a/psm/src/arch/x86_64.s +++ b/psm/src/arch/x86_64.s @@ -4,7 +4,7 @@ .text -#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) +#if defined(CFG_TARGET_OS_darwin) || defined(CFG_TARGET_OS_macos) || defined(CFG_TARGET_OS_ios) || defined(CFG_TARGET_OS_tvos) #define GLOBL(fnname) .globl _##fnname #define TYPE(fnname)