2008-09-19 00:56:32 +02:00
|
|
|
/****************************************************************************
|
2014-08-08 22:31:15 +02:00
|
|
|
* sched/irq/irq_unexpectedisr.c
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2021-02-08 16:33:58 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2021-02-08 16:33:58 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2021-02-08 16:33:58 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2008-09-19 00:56:32 +02:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-09-19 00:56:32 +02:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Included Files
|
2008-09-19 00:56:32 +02:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2009-12-14 19:39:29 +01:00
|
|
|
#include <nuttx/config.h>
|
2012-07-14 21:30:31 +02:00
|
|
|
|
2021-05-18 08:59:14 +02:00
|
|
|
#include <assert.h>
|
2009-06-06 03:54:11 +02:00
|
|
|
#include <debug.h>
|
2012-07-14 21:30:31 +02:00
|
|
|
|
|
|
|
#include <nuttx/irq.h>
|
|
|
|
|
2014-08-08 22:31:15 +02:00
|
|
|
#include "irq/irq.h"
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-09-19 00:56:32 +02:00
|
|
|
/****************************************************************************
|
2007-02-18 00:21:28 +01:00
|
|
|
* Public Functions
|
2008-09-19 00:56:32 +02:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2008-09-19 00:56:32 +02:00
|
|
|
/****************************************************************************
|
2012-07-14 21:30:31 +02:00
|
|
|
* Name: irq_unexpected_isr
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
|
|
|
* Description:
|
2012-07-14 21:30:31 +02:00
|
|
|
* An interrupt has been received for an IRQ that was never registered
|
|
|
|
* with the system.
|
2007-02-18 00:21:28 +01:00
|
|
|
*
|
2008-09-19 00:56:32 +02:00
|
|
|
****************************************************************************/
|
2007-02-18 00:21:28 +01:00
|
|
|
|
2017-02-27 13:27:56 +01:00
|
|
|
int irq_unexpected_isr(int irq, FAR void *context, FAR void *arg)
|
2007-02-18 00:21:28 +01:00
|
|
|
{
|
2020-01-02 17:49:34 +01:00
|
|
|
up_irq_save();
|
2016-06-20 20:44:38 +02:00
|
|
|
_err("ERROR irq: %d\n", irq);
|
2013-04-25 23:19:59 +02:00
|
|
|
PANIC();
|
2009-06-06 03:54:11 +02:00
|
|
|
return OK; /* Won't get here */
|
2007-02-18 00:21:28 +01:00
|
|
|
}
|