summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-01 08:26:47 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-12-13 07:32:58 +0100
commit631815419950004c918258183c61ab7e293c8f39 (patch)
treec44c694c75ae4264ac3bdb1bf107dc3a08377632 /bsps
parentbsps/arm: Add missing Cache Manager source file (diff)
downloadrtems-631815419950004c918258183c61ab7e293c8f39.tar.bz2
bsp/leon3: Use interrupt entry for Clock Driver
Using rtems_interrupt_entry_install() instead of rtems_interrupt_handler_install() avoids a dependency on the dynamic memory allocation.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/sparc/leon3/clock/ckinit.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/bsps/sparc/leon3/clock/ckinit.c b/bsps/sparc/leon3/clock/ckinit.c
index 4d30e0fd64..69afb25f3c 100644
--- a/bsps/sparc/leon3/clock/ckinit.c
+++ b/bsps/sparc/leon3/clock/ckinit.c
@@ -133,16 +133,22 @@ static void leon3_tc_do_tick(void)
#define Clock_driver_support_install_isr(isr) \
bsp_clock_handler_install(isr)
+static rtems_interrupt_entry leon3_clock_interrupt_entry;
+
static void bsp_clock_handler_install(rtems_interrupt_handler isr)
{
rtems_status_code sc;
- sc = rtems_interrupt_handler_install(
+ rtems_interrupt_entry_initialize(
+ &leon3_clock_interrupt_entry,
+ isr,
+ NULL,
+ "Clock"
+ );
+ sc = rtems_interrupt_entry_install(
clkirq,
- "Clock",
RTEMS_INTERRUPT_UNIQUE,
- isr,
- NULL
+ &leon3_clock_interrupt_entry
);
if (sc != RTEMS_SUCCESSFUL) {
rtems_fatal(RTEMS_FATAL_SOURCE_BSP, LEON3_FATAL_CLOCK_INITIALIZATION);