source: rtems/cpukit/score/src/isrthreaddispatch.c @ a8a4e7c

4.104.115
Last change on this file since a8a4e7c was a8a4e7c, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 28, 2010 at 5:08:19 PM

2010-03-28 Joel Sherrill <joel.sherrill@…>

  • score/src/isrthreaddispatch.c: Add include of config.h
  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @file
3 *
4 * @brief Thread dispatch after interrupt processing.
5 */
6
7/*
8 * Copyright (c) 2009 embedded brains GmbH
9 *
10 * embedded brains GmbH
11 * Obere Lagerstr. 30
12 * D-82178 Puchheim
13 * Germany
14 * <rtems@embedded-brains.de>
15 *
16 * Copyright (c) 2009 Till Straumann <strauman@slac.stanford.edu>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23#
24#  $Id$
25#
26#include <rtems.h>
27#include <rtems/score/apiext.h>
28
29#if ( CPU_ENABLE_C_ISR_DISPATCH_IMPLEMENTATION == TRUE )
30
31void _ISR_Thread_dispatch( void )
32{
33  if ( _Context_Switch_necessary ) {
34    _Thread_Dispatch();
35  } else if ( _ISR_Signals_to_thread_executing ) {
36    _ISR_Signals_to_thread_executing = false;
37    if (
38      _Thread_Do_post_task_switch_extension
39        || _Thread_Executing->do_post_task_switch_extension
40    ) {
41      _Thread_Executing->do_post_task_switch_extension = false;
42      _API_extensions_Run_postswitch();
43    }
44  }
45}
46
47#endif /* CPU_ENABLE_C_ISR_DISPATCH_IMPLEMENTATION */
Note: See TracBrowser for help on using the repository browser.