summaryrefslogtreecommitdiffstats
path: root/bsps/shared
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 /bsps/shared
parentrtems: Add rtems_interrupt_is_pending() (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 'bsps/shared')
-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 );
}