[rtems-central commit] spec: Always specify spurious interrupts
Sebastian Huber
sebh at rtems.org
Thu Jul 7 08:02:37 UTC 2022
Module: rtems-central
Branch: master
Commit: 300b0c441e24e5d35b9fbb68ccb046131e2a3d95
Changeset: http://git.rtems.org/rtems-central/commit/?id=300b0c441e24e5d35b9fbb68ccb046131e2a3d95
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jul 5 11:11:42 2022 +0200
spec: Always specify spurious interrupts
---
spec/bsp/req/interrupt-spurious.yml | 24 ++++++++++--------------
1 file changed, 10 insertions(+), 14 deletions(-)
diff --git a/spec/bsp/req/interrupt-spurious.yml b/spec/bsp/req/interrupt-spurious.yml
index d423df32..ee657c3f 100644
--- a/spec/bsp/req/interrupt-spurious.yml
+++ b/spec/bsp/req/interrupt-spurious.yml
@@ -1,7 +1,7 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
copyrights:
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
-enabled-by: RTEMS_SMP
+enabled-by: true
functional-type: action
links:
- role: interface-function
@@ -66,28 +66,24 @@ references: []
requirement-type: functional
skip-reasons: {}
test-action: |
+ rtems_status_code sc;
+
ctx->interrupt_occurred = false;
ctx->entry_counter = 0;
ctx->fatal_counter = 0;
ctx->fatal_source = RTEMS_FATAL_SOURCE_LAST;
ctx->fatal_code = UINT32_MAX;
- if ( *ctx->first == NULL ) {
- rtems_status_code sc;
-
- (void) rtems_interrupt_vector_enable( ctx->test_vector );
-
- sc = rtems_interrupt_raise( ctx->test_vector );
- T_rsc_success( sc );
+ (void) rtems_interrupt_vector_enable( ctx->test_vector );
- while ( !ctx->interrupt_occurred ) {
- /* Wait */
- }
+ sc = rtems_interrupt_raise( ctx->test_vector );
+ T_rsc_success( sc );
- Disable( ctx );
- } else {
- bsp_interrupt_spurious( ctx->test_vector );
+ while ( !ctx->interrupt_occurred ) {
+ /* Wait */
}
+
+ Disable( ctx );
test-brief: null
test-cleanup: null
test-context:
More information about the vc
mailing list