From d2bacb6c38c2bc0e47524b943200e16ad3c26bd8 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 17 May 2016 15:57:48 +0200 Subject: score: _Thread_Dispatch_increment_disable_level() Avoid _Thread_Dispatch_increment_disable_level() and _Thread_Dispatch_decrement_disable_level() and thus the Giant lock. This is a preparation to remove the Giant lock. Update #2555. --- c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/src/lib/libcpu/sh/sh7032') 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 dc1546ef95..649c89de89 100644 --- a/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c +++ b/c/src/lib/libcpu/sh/sh7032/score/cpu_asm.c @@ -133,7 +133,7 @@ void __ISR_Handler( uint32_t vector) _ISR_Disable( level ); - _Thread_Dispatch_increment_disable_level(); + _Thread_Dispatch_disable(); #if (CPU_HAS_SOFTWARE_INTERRUPT_STACK == TRUE) if ( _ISR_Nest_level == 0 ) @@ -155,7 +155,7 @@ void __ISR_Handler( uint32_t vector) _ISR_Disable( level ); - _Thread_Dispatch_decrement_disable_level(); + _Thread_Dispatch_unnest( _Per_CPU_Get() ); _ISR_Nest_level--; -- cgit v1.2.3