summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-06 14:03:41 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-26 07:54:25 +0200
commit4969af41028ff7861753efe451826c2c42fc45b2 (patch)
tree5a8b0187b4d4a77ae59830b8114adb1376aadb7b /cpukit
parentfaa4b6365405ff4f881e3b3605957d2e0540bc04 (diff)
downloadrtems-4969af41028ff7861753efe451826c2c42fc45b2.tar.bz2
rtems: Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT
Add RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT as the fatal source for spurious interrupts. Use the interrupt vector number of the spurious interrupt for the fatal code. Update #3269.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/score/interr.h7
-rw-r--r--cpukit/sapi/src/fatalsrctext.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h
index 33e9524b65..e5a0a62cf6 100644
--- a/cpukit/include/rtems/score/interr.h
+++ b/cpukit/include/rtems/score/interr.h
@@ -144,6 +144,13 @@ typedef enum {
RTEMS_FATAL_SOURCE_HEAP = 13,
/**
+ * @brief Fatal source for spurious interrupts.
+ *
+ * The fatal code is the interrupt vector number of the spurious interrupt.
+ */
+ RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT = 14,
+
+ /**
* @brief The last available fatal source.
*
* This enum value ensures that the enum type needs at least 32-bits for
diff --git a/cpukit/sapi/src/fatalsrctext.c b/cpukit/sapi/src/fatalsrctext.c
index 6510725e13..636878da4c 100644
--- a/cpukit/sapi/src/fatalsrctext.c
+++ b/cpukit/sapi/src/fatalsrctext.c
@@ -41,7 +41,8 @@ static const char *const fatal_source_text[] = {
"RTEMS_FATAL_SOURCE_SMP",
"RTEMS_FATAL_SOURCE_PANIC",
"RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE",
- "RTEMS_FATAL_SOURCE_HEAP"
+ "RTEMS_FATAL_SOURCE_HEAP",
+ "RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT"
};
const char *rtems_fatal_source_text( rtems_fatal_source source )