Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Wind River Systems, Inc.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
14
#ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_ERROR_H_
15
#define ZEPHYR_INCLUDE_ARCH_ARC_V2_ERROR_H_
16
17
#include <
zephyr/arch/arc/syscall.h
>
18
#include <
zephyr/arch/arc/v2/exception.h
>
19
#include <
stdbool.h
>
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
/*
26
* use trap_s to raise a SW exception
27
*/
28
#define ARCH_EXCEPT(reason_p) do { \
29
__asm__ volatile ( \
30
"mov %%r0, %[reason]\n\t" \
31
"trap_s %[id]\n\t" \
32
: \
33
: [reason] "i" (reason_p), \
34
[id] "i" (_TRAP_S_CALL_RUNTIME_EXCEPT) \
35
: "memory"); \
36
CODE_UNREACHABLE;
/* LCOV_EXCL_LINE */
\
37
} while (false)
28
#define ARCH_EXCEPT(reason_p) do { \
…
38
39
#ifdef __cplusplus
40
}
41
#endif
42
43
44
#endif
/* ZEPHYR_INCLUDE_ARCH_ARC_V2_ERROR_H_ */
exception.h
ARCv2 public exception handling.
syscall.h
ARC specific syscall header.
stdbool.h
zephyr
arch
arc
v2
error.h
Generated on Fri Mar 14 2025 12:05:18 for Zephyr API Documentation by
1.12.0