source: rtems/c/src/lib/libbsp/arm/lpc24xx/irq/irq-dispatch.c @ f68401e

4.115
Last change on this file since f68401e was 0f7abd99, checked in by Sebastian Huber <sebastian.huber@…>, on 01/04/13 at 15:25:19

arm: Rename inline functions

Rename arm_status_irq_enable() to _ARMV4_Status_irq_enable() and
arm_status_restore() to _ARMV4_Status_restore().

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup bsp_interrupt
5 *
6 * @brief LPC24XX interrupt support.
7 */
8
9/*
10 * Copyright (c) 2008-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
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.com/license/LICENSE.
21 */
22
23#include <rtems/score/armv4.h>
24
25#include <bsp.h>
26#include <bsp/irq.h>
27#include <bsp/irq-generic.h>
28#include <bsp/lpc24xx.h>
29
30#ifdef ARM_MULTILIB_ARCH_V4
31
32void bsp_interrupt_dispatch(void)
33{
34  /* Read current vector number */
35  rtems_vector_number vector = VICVectAddr;
36
37  /* Enable interrupts in program status register */
38  uint32_t psr = _ARMV4_Status_irq_enable();
39
40  /* Dispatch interrupt handlers */
41  bsp_interrupt_handler_dispatch(vector);
42
43  /* Restore program status register */
44  _ARMV4_Status_restore(psr);
45
46  /* Acknowledge interrupt */
47  VICVectAddr = 0;
48}
49
50#endif /* ARM_MULTILIB_ARCH_V4 */
Note: See TracBrowser for help on using the repository browser.