source: rtems/bsps/shared/irq/irq-lock.c @ 32ccc01

5
Last change on this file since 32ccc01 was 32ccc01, checked in by Sebastian Huber <sebastian.huber@…>, on Aug 3, 2018 at 12:03:39 PM

bsps: Fix the generic IRQ support

The genmcf548x partly uses is own implementation of the interrupt
extension API for libbsd support.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 838 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_interrupt
5 *
6 * @brief BSP interrupt support lock implementation.
7 */
8
9/*
10 * Based on concepts of Pavel Pisa, Till Straumann and Eric Valette.
11 *
12 * Copyright (c) 2008, 2018 embedded brains GmbH.
13 *
14 *  embedded brains GmbH
15 *  Dornierstr. 4
16 *  82178 Puchheim
17 *  Germany
18 *  <rtems@embedded-brains.de>
19 *
20 * The license and distribution terms for this file may be
21 * found in the file LICENSE in this distribution or at
22 * http://www.rtems.org/license/LICENSE.
23 */
24
25#include <bsp/irq-generic.h>
26
27#include <rtems/score/apimutex.h>
28#include <rtems/score/sysstate.h>
29
30void bsp_interrupt_lock(void)
31{
32  if (_System_state_Is_up(_System_state_Get())) {
33    _RTEMS_Lock_allocator();
34  }
35}
36
37void bsp_interrupt_unlock(void)
38{
39  if (_System_state_Is_up(_System_state_Get())) {
40    _RTEMS_Unlock_allocator();
41  }
42}
Note: See TracBrowser for help on using the repository browser.