source: rtems/c/src/lib/libbsp/arm/smdk2410/irq/irq.c @ a1460043

Last change on this file since a1460043 was a1460043, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 8, 2017 at 6:57:21 AM

bsp/smdk2410: Move libcpu files to BSP

Update #3254.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/* irq.c
2 *
3 *  This file contains the implementation of the function described in irq.h
4 *
5 *  Copyright (c) 2010 embedded brains GmbH.
6 *
7 *  CopyRight (C) 2000 Canon Research France SA.
8 *  Emmanuel Raguet,  mailto:raguet@crf.canon.fr
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.org/license/LICENSE.
13 */
14
15#include <rtems/score/armv4.h>
16
17#include <bsp.h>
18#include <bsp/irq.h>
19#include <bsp/irq-generic.h>
20
21#include <s3c24xx.h>
22
23void bsp_interrupt_dispatch(void)
24{
25  rtems_vector_number vector = *((uint32_t *) rINTOFFSET_ADDR);
26
27  bsp_interrupt_handler_dispatch(vector);
28}
29
30void bsp_interrupt_vector_enable(rtems_vector_number vector)
31{
32  bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
33}
34
35void bsp_interrupt_vector_disable(rtems_vector_number vector)
36{
37  bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
38}
39
40rtems_status_code bsp_interrupt_facility_initialize(void)
41{
42  _CPU_ISR_install_vector(ARM_EXCEPTION_IRQ, _ARMV4_Exception_interrupt, NULL);
43
44  return RTEMS_SUCCESSFUL;
45}
Note: See TracBrowser for help on using the repository browser.