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
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
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
▼
arch
▼
arc
►
asm-compat
►
v2
arc_addr_types.h
►
arch.h
►
arch_inlines.h
►
cluster.h
►
sys-io-common.h
►
syscall.h
thread.h
tool-compat.h
►
arm
►
arm64
►
common
►
mips
►
posix
►
riscv
►
rx
►
sparc
►
x86
►
xtensa
arch_inlines.h
►
arch_interface.h
►
cache.h
cpu.h
exception.h
structs.h
syscall.h
►
audio
►
bluetooth
►
canbus
►
console
►
crypto
►
data
►
debug
►
devicetree
►
dfu
►
display
►
drivers
►
dsp
►
dt-bindings
►
fs
►
input
►
internal
►
ipc
►
kernel
►
linker
►
llext
►
logging
►
lorawan
►
math
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
pmci
►
portability
►
posix
►
psa
►
random
►
retention
►
rtio
►
sd
►
sensing
►
settings
►
shell
►
sip_svc
►
stats
►
storage
►
sys
►
task_wdt
►
timing
►
toolchain
►
tracing
►
usb
►
usb_c
►
xen
►
zbus
►
zvfs
►
bindesc.h
►
cache.h
►
device.h
►
devicetree.h
►
fatal.h
►
fatal_types.h
►
init.h
►
irq.h
►
irq_multilevel.h
►
irq_nextlevel.h
►
irq_offload.h
►
kernel.h
kernel_includes.h
►
kernel_structs.h
►
kernel_version.h
►
net_buf.h
►
shared_irq.h
►
smf.h
►
spinlock.h
►
sw_isr_table.h
►
sys_clock.h
►
syscall.h
►
toolchain.h
types.h
►
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
19
#ifndef ZEPHYR_INCLUDE_ARCH_ARC_THREAD_H_
20
#define ZEPHYR_INCLUDE_ARCH_ARC_THREAD_H_
21
22
/*
23
* Reason a thread has relinquished control.
24
*/
25
#define _CAUSE_NONE 0
26
#define _CAUSE_COOP 1
27
#define _CAUSE_RIRQ 2
28
#define _CAUSE_FIRQ 3
29
30
#ifndef _ASMLANGUAGE
31
#include <
zephyr/types.h
>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
struct
_callee_saved {
38
uintptr_t
sp;
/* r28 */
39
};
40
typedef
struct
_callee_saved _callee_saved_t;
41
42
struct
_thread_arch {
43
44
/* one of the _CAUSE_xxxx definitions above */
45
int32_t
relinquish_cause;
46
47
#ifdef CONFIG_ARC_STACK_CHECKING
48
/* High address of stack region, stack grows downward from this
49
* location. Usesd for hardware stack checking
50
*/
51
uintptr_t
k_stack_base;
52
uintptr_t
k_stack_top;
53
#ifdef CONFIG_USERSPACE
54
uintptr_t
u_stack_base;
55
uintptr_t
u_stack_top;
56
#endif
57
#endif
58
59
#ifdef CONFIG_USERSPACE
60
uintptr_t
priv_stack_start;
61
#endif
62
};
63
64
typedef
struct
_thread_arch _thread_arch_t;
65
66
#ifdef __cplusplus
67
}
68
#endif
69
70
#endif
/* _ASMLANGUAGE */
71
72
73
#endif
/* ZEPHYR_INCLUDE_ARCH_ARC_THREAD_H_ */
types.h
int32_t
__INT32_TYPE__ int32_t
Definition
stdint.h:74
uintptr_t
__UINTPTR_TYPE__ uintptr_t
Definition
stdint.h:105
zephyr
arch
arc
thread.h
Generated on Sun May 18 2025 15:07:32 for Zephyr API Documentation by
1.12.0