mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
The error was referencing a field in the rtems_irq_connect_data structure which only existed when BSP_SHARED_HANDLER_SUPPORT is enabled. Updates #5325.
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0+-with-RTEMS-exception */
|
|
|
|
/*
|
|
* Clock Tick interrupt conexion code.
|
|
*/
|
|
|
|
/*
|
|
* COPYRIGHT (c) 1989-1997.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may in
|
|
* the file LICENSE in this distribution or at
|
|
* http://www.rtems.org/license/LICENSE.
|
|
*
|
|
* Modified to support the MPC750.
|
|
* Modifications Copyright (c) 1999 Eric Valette eric.valette@free.fr
|
|
*/
|
|
|
|
#include <bsp.h>
|
|
#include <bsp/irq.h>
|
|
#include <libcpu/c_clock.h>
|
|
#include <libcpu/cpuIdent.h>
|
|
|
|
static rtems_irq_connect_data clockIrqData;
|
|
static rtems_irq_connect_data clockIrqData = {
|
|
.name = BSP_DECREMENTER,
|
|
.hdl = clockIsr,
|
|
.handle = NULL,
|
|
.on = (rtems_irq_enable)clockOn,
|
|
.off = (rtems_irq_disable)clockOff,
|
|
.isOn = (rtems_irq_is_enabled) clockIsOn
|
|
};
|
|
|
|
int BSP_disconnect_clock_handler(void)
|
|
{
|
|
return BSP_remove_rtems_irq_handler(&clockIrqData);
|
|
}
|
|
|
|
int BSP_connect_clock_handler(void)
|
|
{
|
|
if ( ppc_cpu_is_bookE() )
|
|
clockIrqData.hdl = clockIsrBookE;
|
|
|
|
return BSP_install_rtems_irq_handler(&clockIrqData);
|
|
}
|