diff options
author | Gleb Balykov <g.balykov@samsung.com> | 2021-06-28 21:41:50 +0300 |
---|---|---|
committer | 조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com> | 2021-06-29 09:06:51 +0900 |
commit | 9b1e33323792c24f18072c0450b90d3f97985e9e (patch) | |
tree | 063d6ea1bb60682773787b588d279057102a00b5 | |
parent | 01ce73cb2ebaa8d0e9d4025371849459a8e0ffd2 (diff) | |
download | coreclr-accepted/tizen/unified/20210629.130321.tar.gz coreclr-accepted/tizen/unified/20210629.130321.tar.bz2 coreclr-accepted/tizen/unified/20210629.130321.zip |
Add YieldProcessor implementation for armsubmit/tizen/20210629.000826accepted/tizen/unified/20210629.130321
-rw-r--r-- | src/gc/env/gcenv.base.h | 9 | ||||
-rw-r--r-- | src/pal/inc/pal.h | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/gc/env/gcenv.base.h b/src/gc/env/gcenv.base.h index 52b64eeeef..95c8143785 100644 --- a/src/gc/env/gcenv.base.h +++ b/src/gc/env/gcenv.base.h @@ -217,15 +217,10 @@ typedef DWORD (WINAPI *PTHREAD_START_ROUTINE)(void* lpThreadParameter); #endif // defined(__i386__) || defined(__x86_64__) -#ifdef __aarch64__ +#if defined(__arm__) || defined(__aarch64__) #define YieldProcessor() asm volatile ("yield") #define MemoryBarrier __sync_synchronize -#endif // __aarch64__ - -#ifdef __arm__ - #define YieldProcessor() - #define MemoryBarrier __sync_synchronize -#endif // __arm__ +#endif // __arm__ || __aarch64__ #endif // _MSC_VER diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 5a4e758aaf..9d05d73530 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -3823,7 +3823,7 @@ YieldProcessor( __asm__ __volatile__( "rep\n" "nop"); -#elif defined(_ARM64_) +#elif defined(_ARM_) || defined(_ARM64_) __asm__ __volatile__( "yield"); #else return; |