source: rtems/cpukit/score/src/isrisinprogress.c @ 8a8b95aa

5
Last change on this file since 8a8b95aa was 4c20da4b, checked in by Sebastian Huber <sebastian.huber@…>, on 04/04/19 at 07:18:11

doxygen: Rename Score* groups in RTEMSScore*

Update #3706

  • Property mode set to 100644
File size: 905 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup RTEMSScoreISR
5 *
6 * @brief ISR Is In Progress Default Implementation
7 */
8
9/*
10 * Copyright (c) 2013-2015 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
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.org/license/LICENSE.
21 */
22
23#if HAVE_CONFIG_H
24  #include "config.h"
25#endif
26
27#include <rtems/score/isr.h>
28#include <rtems/score/percpu.h>
29
30#if CPU_PROVIDES_ISR_IS_IN_PROGRESS == FALSE
31
32bool _ISR_Is_in_progress( void )
33{
34  uint32_t isr_nest_level;
35
36  #if defined( RTEMS_SMP )
37    ISR_Level level;
38
39    _ISR_Local_disable( level );
40  #endif
41
42  isr_nest_level = _ISR_Nest_level;
43
44  #if defined( RTEMS_SMP )
45    _ISR_Local_enable( level );
46  #endif
47
48  return isr_nest_level != 0;
49}
50
51#endif
Note: See TracBrowser for help on using the repository browser.