Skip to content

Commit c28bfd1

Browse files
committed
Revert a few more changes
1 parent f0f3390 commit c28bfd1

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/coreclr/pal/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if(CLR_CMAKE_TARGET_OSX OR CLR_CMAKE_TARGET_FREEBSD)
2-
# On OSX platforms and *BSD, we use the libunwind that's part of the OS
2+
# On OSX and *BSD, we use the libunwind that's part of the OS
33
set(CLR_CMAKE_USE_SYSTEM_LIBUNWIND 1)
44
endif(CLR_CMAKE_TARGET_OSX OR CLR_CMAKE_TARGET_FREEBSD)
55

src/coreclr/pal/src/configure.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ elseif(CLR_CMAKE_TARGET_SUNOS)
1414
set(CMAKE_REQUIRED_INCLUDES /opt/local/include)
1515
endif()
1616

17-
if(CLR_CMAKE_TARGET_APPLE)
17+
if(CLR_CMAKE_TARGET_OSX)
1818
set(CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE)
1919
elseif(NOT CLR_CMAKE_TARGET_FREEBSD AND NOT CLR_CMAKE_TARGET_NETBSD)
2020
set(CMAKE_REQUIRED_DEFINITIONS "-D_BSD_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE -D_POSIX_C_SOURCE=200809L")

src/coreclr/pal/src/include/pal/context.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ const fpsimd_context* GetConstNativeSigSimdContext(const native_context_t *mc)
573573
return GetNativeSigSimdContext(const_cast<native_context_t*>(mc));
574574
}
575575

576-
#else // !defined(TARGET_OSX)
576+
#else // TARGET_OSX
577577

578578
#define MCREG_X0(mc) ((mc)->__ss.__x[0])
579579
#define MCREG_X1(mc) ((mc)->__ss.__x[1])
@@ -623,7 +623,7 @@ const _STRUCT_ARM_NEON_STATE64* GetConstNativeSigSimdContext(const native_contex
623623
return GetNativeSigSimdContext(const_cast<native_context_t*>(mc));
624624
}
625625

626-
#endif // !defined(TARGET_OSX)
626+
#endif // TARGET_OSX
627627

628628
#elif defined(HOST_LOONGARCH64)
629629

@@ -663,7 +663,7 @@ const _STRUCT_ARM_NEON_STATE64* GetConstNativeSigSimdContext(const native_contex
663663

664664
#else // HOST_ARM64
665665

666-
#if defined(TARGET_OSX)
666+
#ifdef TARGET_OSX
667667

668668
#define MCREG_Rbp(mc) ((mc)->__ss.__rbp)
669669
#define MCREG_Rip(mc) ((mc)->__ss.__rip)
@@ -711,7 +711,7 @@ inline void *FPREG_Xstate_Ymmh(const ucontext_t *uc)
711711
return reinterpret_cast<void *>(&((_STRUCT_X86_AVX_STATE64&)FPSTATE(uc)).__fpu_ymmh0);
712712
}
713713

714-
#else // defined(TARGET_OSX)
714+
#else //TARGET_OSX
715715

716716
// For FreeBSD, as found in x86/ucontext.h
717717
#define MCREG_Rbp(mc) ((mc).mc_rbp)
@@ -748,7 +748,7 @@ inline void *FPREG_Xstate_Ymmh(const ucontext_t *uc)
748748

749749
#define FPREG_Xmm(uc, index) *(M128A*) &(FPSTATE(uc)->sv_xmm[index])
750750
#define FPREG_St(uc, index) *(M128A*) &(FPSTATE(uc)->sv_fp[index].fp_acc)
751-
#endif // defined(TARGET_OSX)
751+
#endif // TARGET_OSX
752752
#endif // HOST_ARM64
753753

754754
#else // HOST_64BIT

src/coreclr/pal/src/thread/process.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,7 @@ InitializeFlushProcessWriteBuffers()
24732473
}
24742474
}
24752475

2476-
#ifdef TARGET_APPLE
2476+
#ifdef TARGET_OSX
24772477
return TRUE;
24782478
#else
24792479
s_helperPage = static_cast<int*>(mmap(0, GetVirtualPageSize(), PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0));
@@ -2503,7 +2503,7 @@ InitializeFlushProcessWriteBuffers()
25032503
}
25042504

25052505
return status == 0;
2506-
#endif // TARGET_APPLE
2506+
#endif // TARGET_OSX
25072507
}
25082508

25092509
#define FATAL_ASSERT(e, msg) \
@@ -2570,7 +2570,6 @@ FlushProcessWriteBuffers()
25702570
// Request the threads pointer values to force the thread to emit a memory barrier
25712571
size_t registers = 128;
25722572
machret = thread_get_register_pointer_values(pThreads[i], &sp, &registers, registerValues);
2573-
25742573
if (machret == KERN_INSUFFICIENT_BUFFER_SIZE)
25752574
{
25762575
CHECK_MACH("thread_get_register_pointer_values()", machret);

0 commit comments

Comments
 (0)