[rtems-central commit] spec: Support more BSPs in validation test

Sebastian Huber sebh at rtems.org
Tue Dec 19 07:28:52 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    c70d768495d40c9852839c42afcf4ecbf41d71e3
Changeset: http://git.rtems.org/rtems-central/commit/?id=c70d768495d40c9852839c42afcf4ecbf41d71e3

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Dec 19 08:09:18 2023 +0100

spec: Support more BSPs in validation test

Use the new functions RaiseSoftwareInterrupt() and
ClearSoftwareInterrupt() which may use a BSP-specific support for
software generated interrupts (see TM27_INTERRUPT_VECTOR_ALTERNATIVE).

---

 spec/rtems/intr/req/entry-install.yml | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/spec/rtems/intr/req/entry-install.yml b/spec/rtems/intr/req/entry-install.yml
index c5639387..612f6a13 100644
--- a/spec/rtems/intr/req/entry-install.yml
+++ b/spec/rtems/intr/req/entry-install.yml
@@ -603,11 +603,8 @@ test-support: |
 
     ctx->handler_counter = counter;
 
-    if (
-      ctx->attributes.can_clear &&
-      !ctx->attributes.cleared_by_acknowledge
-    ) {
-      sc = rtems_interrupt_clear( ctx->test_vector );
+    if ( !ctx->attributes.cleared_by_acknowledge ) {
+      sc = ClearSoftwareInterrupt( ctx->test_vector );
       T_rsc_success( sc );
     }
 
@@ -716,7 +713,7 @@ test-support: |
     T_rsc_success( sc );
 
     if ( ctx->status == RTEMS_SUCCESSFUL ) {
-      sc = rtems_interrupt_raise( ctx->test_vector );
+      sc = RaiseSoftwareInterrupt( ctx->test_vector );
       T_rsc_success( sc );
     }
   }



More information about the vc mailing list