[PATCH 1/3] bsps/xil-ttc: Use interrupt entry

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 10 11:15:54 UTC 2024


---
 bsps/shared/dev/clock/xil-ttc.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/bsps/shared/dev/clock/xil-ttc.c b/bsps/shared/dev/clock/xil-ttc.c
index 340c428a48..384f23663b 100644
--- a/bsps/shared/dev/clock/xil-ttc.c
+++ b/bsps/shared/dev/clock/xil-ttc.c
@@ -191,18 +191,24 @@ static void zynqmp_ttc_clock_driver_support_at_tick(ttc_clock_context *tc)
   /* Else, something is set up wrong, only match should be enabled */
 }
 
+static rtems_interrupt_entry zynqmp_ttc_interrupt_entry;
+
 static void zynqmp_ttc_clock_driver_support_install_isr(
   rtems_interrupt_handler handler
 )
 {
   rtems_status_code sc;
 
-  sc = rtems_interrupt_handler_install(
-    BSP_SELECTED_TTC_IRQ,
-    "Clock",
-    RTEMS_INTERRUPT_UNIQUE,
+  rtems_interrupt_entry_initialize(
+    &zynqmp_ttc_interrupt_entry,
     handler,
     &ttc_clock_instance
+    "Clock"
+  );
+  sc = rtems_interrupt_entry_install(
+    BSP_SELECTED_TTC_IRQ,
+    RTEMS_INTERRUPT_UNIQUE,
+    &zynqmp_ttc_interrupt_entry
   );
   if ( sc != RTEMS_SUCCESSFUL ) {
     rtems_fatal_error_occurred(0xdeadbeef);
-- 
2.35.3



More information about the devel mailing list