Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
 4.2.99
error.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Renesas Electronics Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
14
15#ifndef ZEPHYR_INCLUDE_ARCH_RX_ERROR_H_
16#define ZEPHYR_INCLUDE_ARCH_RX_ERROR_H_
17
18#include <stdbool.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#define ARCH_EXCEPT(reason_p) \
25 do { \
26 arch_irq_unlock(0); \
27 __asm__ volatile("mov %[_reason], r1\n\t" \
28 "int #2\n\t" ::[_reason] "r"(reason_p) \
29 : "r1", "memory"); \
30 } while (false)
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* ZEPHYR_INCLUDE_ARCH_RX_ERROR_H_ */