Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2025 Infineon Technologies AG,
3 * SPDX-FileCopyrightText: or an affiliate of Infineon Technologies AG. All rights reserved.
4 * SPDX-FileCopyrightText: Copyright (c) 2026 Linumiz
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
16
17#ifndef ZEPHYR_INCLUDE_ARCH_TRICORE_ERROR_H_
18#define ZEPHYR_INCLUDE_ARCH_TRICORE_ERROR_H_
19#include <stdbool.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27
28#define TRICORE_SYSCALL_EXCEPT_STR STRINGIFY(TRICORE_SYSCALL_EXCEPT)
29
30#define ARCH_EXCEPT(reason_p) \
31 do { \
32 __asm__ volatile("mov %%d4, %[_reason]\n" \
33 "syscall " TRICORE_SYSCALL_EXCEPT_STR \
34 "\n" ::[_reason] "r"(reason_p) \
35 : "d4", "memory"); \
36 } while (false)
37
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif /* ZEPHYR_INCLUDE_ARCH_TRICORE_ERROR_H_ */
TriCore specific syscall header.