[rtems commit] bsp/leon3: Fix rtems_interrupt_is_pending()

Sebastian Huber sebh at rtems.org
Thu Aug 12 19:07:30 UTC 2021


Module:    rtems
Branch:    master
Commit:    75af5be6a8239ff71992d957776787341526cb0b
Changeset: http://git.rtems.org/rtems/commit/?id=75af5be6a8239ff71992d957776787341526cb0b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug 12 21:06:39 2021 +0200

bsp/leon3: Fix rtems_interrupt_is_pending()

Take the interrupt force register into account in all configurations.

Update #3269.

---

 bsps/sparc/leon3/start/eirq.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/bsps/sparc/leon3/start/eirq.c b/bsps/sparc/leon3/start/eirq.c
index b94a674..2b69b68 100644
--- a/bsps/sparc/leon3/start/eirq.c
+++ b/bsps/sparc/leon3/start/eirq.c
@@ -86,7 +86,6 @@ rtems_status_code bsp_interrupt_is_pending(
   bool               *pending
 )
 {
-#if defined(RTEMS_SMP)
   rtems_interrupt_level level;
   uint32_t bit;
 
@@ -99,11 +98,6 @@ rtems_status_code bsp_interrupt_is_pending(
     (LEON3_IrqCtrl_Regs->force[rtems_scheduler_get_processor()] & bit) != 0;
   rtems_interrupt_local_enable(level);
   return RTEMS_SUCCESSFUL;
-#else
-  bsp_interrupt_assert(bsp_interrupt_is_valid_vector(vector));
-  *pending = !BSP_Is_interrupt_pending(vector);
-  return RTEMS_SUCCESSFUL;
-#endif
 }
 
 rtems_status_code bsp_interrupt_raise(rtems_vector_number vector)



More information about the vc mailing list