source: rtems/c/src/lib/libbsp/powerpc/t32mppc/irq/irq.c @ 7078a00b

Last change on this file since 7078a00b was 7078a00b, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 8, 2017 at 12:13:32 PM

bsp/t32mppc: Use fixed exception handlers

  • Property mode set to 100644
File size: 939 bytes
Line 
1/*
2 * Copyright (c) 2012, 2017 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
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 <bsp.h>
16#include <bsp/irq-generic.h>
17#include <bsp/vectors.h>
18
19void bsp_interrupt_vector_enable(rtems_vector_number vector)
20{
21        bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
22}
23
24void bsp_interrupt_dispatch(uintptr_t exception_number)
25{
26        if (exception_number == 10) {
27                t32mppc_decrementer_dispatch();
28        } else {
29                bsp_interrupt_handler_default(0);
30        }
31}
32
33void bsp_interrupt_vector_disable(rtems_vector_number vector)
34{
35        bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
36}
37
38rtems_status_code bsp_interrupt_facility_initialize(void)
39{
40        return RTEMS_SUCCESSFUL;
41}
Note: See TracBrowser for help on using the repository browser.