From 49cdf40afa1b67b1eedbec26b73c59f54dc882cd Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 12 Jun 2013 09:25:39 +0200 Subject: score: Add and use _Thread_Dispatch_is_enabled() Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled(). --- c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c | 2 +- c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c | 2 +- c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c | 2 +- c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libcpu/sh') diff --git a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c index 1c14cc0b2d..9776457916 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c @@ -170,7 +170,7 @@ void __ISR_Handler( uint32_t vector) if ( _ISR_Nest_level ) return; - if ( _Thread_Dispatch_in_critical_section() ) { + if ( !_Thread_Dispatch_is_enabled() ) { return; } diff --git a/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c index d141a2ded6..69134d9beb 100644 --- a/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7045/score/cpu_asm.c @@ -172,7 +172,7 @@ void __ISR_Handler( uint32_t vector) if ( _ISR_Nest_level ) return; - if ( _Thread_Dispatch_in_critical_section() ) { + if ( !_Thread_Dispatch_is_enabled() ) { return; } diff --git a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c index fcc867f493..77945aeddf 100644 --- a/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7750/score/cpu_asm.c @@ -95,7 +95,7 @@ void __ISR_Handler( uint32_t vector) if ( _ISR_Nest_level ) return; - if ( _Thread_Dispatch_in_critical_section() ) { + if ( !_Thread_Dispatch_is_enabled() ) { return; } diff --git a/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c b/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c index 678e23c09a..a9a24c9a3b 100644 --- a/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/shgdb/score/cpu_asm.c @@ -69,7 +69,7 @@ void __ISR_Handler( uint32_t vector) if ( _ISR_Nest_level ) return; - if ( _Thread_Dispatch_in_critical_section() ) { + if ( !_Thread_Dispatch_is_enabled() ) { return; } -- cgit v1.2.3