summaryrefslogtreecommitdiff
path: root/bsps
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-12 11:50:39 +0200
commit3d1d4be5d08dde44f07b71a09bb285b64857e84d (patch)
treefc33f9b487f4f2a58b8189f6ccd4cc94ed24cc87 /bsps
parent4d67fc1ff4693fb9ac59fc2bb180b04c21793dad (diff)
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 'bsps')
-rw-r--r--bsps/shared/irq/irq-default-handler.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/bsps/shared/irq/irq-default-handler.c b/bsps/shared/irq/irq-default-handler.c
index cfe91f4202..666d48aaa8 100644
--- a/bsps/shared/irq/irq-default-handler.c
+++ b/bsps/shared/irq/irq-default-handler.c
@@ -10,7 +10,7 @@
*/
/*
- * Copyright (C) 2008, 2012 embedded brains GmbH (http://www.embedded-brains.de)
+ * Copyright (C) 2008, 2021 embedded brains GmbH (http://www.embedded-brains.de)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -34,13 +34,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <inttypes.h>
-
-#include <rtems/bspIo.h>
-
#include <bsp/irq-generic.h>
-void bsp_interrupt_handler_default(rtems_vector_number vector)
+#include <rtems/score/interr.h>
+
+void bsp_interrupt_handler_default( rtems_vector_number vector )
{
- printk("spurious interrupt: %" PRIu32 "\n", vector);
+ _Terminate( RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT, vector );
}