From 4969af41028ff7861753efe451826c2c42fc45b2 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 6 Jul 2021 14:03:41 +0200 Subject: 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. --- bsps/shared/irq/irq-default-handler.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'bsps/shared') 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 - -#include - #include -void bsp_interrupt_handler_default(rtems_vector_number vector) +#include + +void bsp_interrupt_handler_default( rtems_vector_number vector ) { - printk("spurious interrupt: %" PRIu32 "\n", vector); + _Terminate( RTEMS_FATAL_SOURCE_SPURIOUS_INTERRUPT, vector ); } -- cgit v1.2.3