From 3366eb63c936667991492b3fbd0a61a66d74d839 Mon Sep 17 00:00:00 2001 From: NicJA Date: Mon, 18 May 2015 02:50:42 +0000 Subject: [PATCH] cleanup macros git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50704 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/arm-native/exec/exec_platform.h | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/arch/arm-native/exec/exec_platform.h b/arch/arm-native/exec/exec_platform.h index 10fd93e2ae..9027b063a9 100644 --- a/arch/arm-native/exec/exec_platform.h +++ b/arch/arm-native/exec/exec_platform.h @@ -40,25 +40,25 @@ struct Exec_PlatformData tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->IDNestCnt++; \ - } while(0); + } while(0) #define IDNESTCOUNT_DEC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->IDNestCnt--; \ - } while(0); + } while(0) #define TDNESTCOUNT_INC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->TDNestCnt++; \ - } while(0); + } while(0) #define TDNESTCOUNT_DEC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->TDNestCnt--; \ - } while(0); + } while(0) #define FLAG_SCHEDQUANTUM_CLEAR \ do { \ tls_t *__tls; \ @@ -101,25 +101,25 @@ struct Exec_PlatformData tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ AROS_ATOMIC_INC(__tls->IDNestCnt); \ - } while(0); + } while(0) #define IDNESTCOUNT_DEC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ AROS_ATOMIC_DEC(__tls->IDNestCnt); \ - } while(0); + } while(0) #define TDNESTCOUNT_INC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ AROS_ATOMIC_INC(__tls->TDNestCnt); \ - } while(0); + } while(0) #define TDNESTCOUNT_DEC \ do { \ tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ AROS_ATOMIC_DEC(__tls->TDNestCnt); \ - } while(0); + } while(0) #define FLAG_SCHEDQUANTUM_CLEAR \ do { \ tls_t *__tls; \ @@ -157,7 +157,6 @@ struct Exec_PlatformData AROS_ATOMIC_OR(__tls->ScheduleFlags, TLSSF_Dispatch); \ } while(0) #endif - #define IDNESTCOUNT_GET \ ({ \ tls_t *__tls; \ @@ -170,7 +169,7 @@ struct Exec_PlatformData tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->IDNestCnt = val; \ - } while(0); + } while(0) #define TDNESTCOUNT_GET \ ({ \ tls_t *__tls; \ @@ -183,8 +182,7 @@ struct Exec_PlatformData tls_t *__tls; \ asm volatile("mrc p15, 0, %0, c13, c0, 3":"=r"(__tls)); \ __tls->TDNestCnt = val; \ - } while(0); - + } while(0) #define FLAG_SCHEDQUANTUM_ISSET \ ({ \ tls_t *__tls; \ -- 2.11.4.GIT