1/*
2 * Copyright (c) 2013-2014 Wind River Systems, Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/**
8 * @file
9 * @brief Default basic NMI handler before the kernel is up
10 *
11 * Provide a default handler for NMI before the system is up. The default action
12 * is to hard hang, sleeping.
13 *
14 * This might be preferable than rebooting to help debugging, or because
15 * rebooting might trigger the exact same problem over and over.
16 */
17
18#include <toolchain.h>
19#include <linker/sections.h>
20
21_ASM_FILE_PROLOGUE
22
23GTEXT(z_SysNmiOnReset)
24
25SECTION_FUNC(TEXT, z_SysNmiOnReset)
26    wfi
27    b z_SysNmiOnReset
28