2008-09-19 06:56:32 +08:00
|
|
|
/****************************************************************************
|
2014-08-09 04:31:15 +08:00
|
|
|
* sched/irq/irq_unexpectedisr.c
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
2021-02-08 23:33:58 +08: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 07:21:28 +08:00
|
|
|
*
|
2021-02-08 23:33:58 +08:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
2021-02-08 23:33:58 +08: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 07:21:28 +08:00
|
|
|
*
|
2008-09-19 06:56:32 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2008-09-19 06:56:32 +08:00
|
|
|
/****************************************************************************
|
2007-02-18 07:21:28 +08:00
|
|
|
* Included Files
|
2008-09-19 06:56:32 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2009-12-15 02:39:29 +08:00
|
|
|
#include <nuttx/config.h>
|
2012-07-15 03:30:31 +08:00
|
|
|
|
2021-05-18 14:59:14 +08:00
|
|
|
#include <assert.h>
|
2009-06-06 09:54:11 +08:00
|
|
|
#include <debug.h>
|
2012-07-15 03:30:31 +08:00
|
|
|
|
|
|
|
#include <nuttx/irq.h>
|
|
|
|
|
2014-08-09 04:31:15 +08:00
|
|
|
#include "irq/irq.h"
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2008-09-19 06:56:32 +08:00
|
|
|
/****************************************************************************
|
2007-02-18 07:21:28 +08:00
|
|
|
* Public Functions
|
2008-09-19 06:56:32 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2008-09-19 06:56:32 +08:00
|
|
|
/****************************************************************************
|
2012-07-15 03:30:31 +08:00
|
|
|
* Name: irq_unexpected_isr
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
|
|
|
* Description:
|
2012-07-15 03:30:31 +08:00
|
|
|
* An interrupt has been received for an IRQ that was never registered
|
|
|
|
* with the system.
|
2007-02-18 07:21:28 +08:00
|
|
|
*
|
2008-09-19 06:56:32 +08:00
|
|
|
****************************************************************************/
|
2007-02-18 07:21:28 +08:00
|
|
|
|
2017-02-27 20:27:56 +08:00
|
|
|
int irq_unexpected_isr(int irq, FAR void *context, FAR void *arg)
|
2007-02-18 07:21:28 +08:00
|
|
|
{
|
2020-01-03 00:49:34 +08:00
|
|
|
up_irq_save();
|
2016-06-21 02:44:38 +08:00
|
|
|
_err("ERROR irq: %d\n", irq);
|
2013-04-26 05:19:59 +08:00
|
|
|
PANIC();
|
2009-06-06 09:54:11 +08:00
|
|
|
return OK; /* Won't get here */
|
2007-02-18 07:21:28 +08:00
|
|
|
}
|