diff options
Diffstat (limited to 'schedsim/shell/schedsim_priority/wrap_thread_dispatch.c')
-rw-r--r-- | schedsim/shell/schedsim_priority/wrap_thread_dispatch.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c b/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c deleted file mode 100644 index a308857..0000000 --- a/schedsim/shell/schedsim_priority/wrap_thread_dispatch.c +++ /dev/null @@ -1,55 +0,0 @@ -/** - * @file - * - * @brief Thread Dispatch Wrapper Implmentation - */ - -/* - * COPYRIGHT (c) 1989-2014. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#include "shell.h" -#include <schedsim_shell.h> - -#include <stdio.h> -#include <rtems.h> - -Thread_Control *last_heir = NULL; -Thread_Control *last_executing = NULL; - -extern void __real__Thread_Dispatch(void); - -void Init__wrap__Thread_Dispatch() -{ -} - -void check_heir_and_executing(void) -{ - uint32_t level; - - _ISR_Disable_without_giant( level ); - if ( last_heir != _Thread_Heir ) - PRINT_HEIR(); - - if ( last_executing != _Thread_Executing ) - PRINT_EXECUTING(); - - last_heir = _Thread_Heir; - last_executing = _Thread_Executing; - _ISR_Enable_without_giant( level ); -} - -void __wrap__Thread_Dispatch(void) -{ - if ( schedsim_is_dispatch_allowed() == false ) - return; - - check_heir_and_executing(); - __real__Thread_Dispatch(); - check_heir_and_executing(); -} |