2016-01-21 13:10:59 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-01-21 13:10:59 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Default basic NMI handler before the kernel is up
|
|
|
|
*
|
|
|
|
* Provide a default handler for NMI before the system is up. The default action
|
|
|
|
* is to hard hang, sleeping.
|
|
|
|
*
|
|
|
|
* This might be preferable than rebooting to help debugging, or because
|
|
|
|
* rebooting might trigger the exact same problem over and over.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <toolchain.h>
|
2017-06-17 23:30:47 +08:00
|
|
|
#include <linker/sections.h>
|
2016-01-21 13:10:59 +08:00
|
|
|
|
|
|
|
_ASM_FILE_PROLOGUE
|
|
|
|
|
2019-03-14 23:20:46 +08:00
|
|
|
GTEXT(z_SysNmiOnReset)
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2019-03-14 23:20:46 +08:00
|
|
|
SECTION_FUNC(TEXT, z_SysNmiOnReset)
|
2016-01-21 13:10:59 +08:00
|
|
|
wfi
|
2019-03-14 23:20:46 +08:00
|
|
|
b z_SysNmiOnReset
|