diff options
Diffstat (limited to 'arch/arm/armv7-m/include/arch_exceptions.h')
-rw-r--r-- | arch/arm/armv7-m/include/arch_exceptions.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/armv7-m/include/arch_exceptions.h b/arch/arm/armv7-m/include/arch_exceptions.h new file mode 100644 index 00000000..0aa1363d --- /dev/null +++ b/arch/arm/armv7-m/include/arch_exceptions.h @@ -0,0 +1,28 @@ +/* + * Arm SCP/MCP Software + * Copyright (c) 2019-2020, Arm Limited and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ARCH_EXCEPTIONS_H +#define ARCH_EXCEPTIONS_H + +#include <fwk_noreturn.h> + +/*! + * \brief Arm reset exception handler. + * + * \details This is the first function that executes when the core comes online. + */ +noreturn void arch_exception_reset(void); + +/*! + * \brief Invalid exception handler. + * + * \details This handler is used as the default in order to catch exceptions + * that have not been configured with a handler of their own. + */ +noreturn void arch_exception_invalid(void); + +#endif /* ARCH_EXCEPTIONS_H */ |