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
▼
Zephyr API Documentation
►
Introduction
Deprecated List
►
Topics
►
Data Structures
▼
Files
▼
File List
►
doc
►
kernel
►
lib
►
subsys
▼
zephyr
►
acpi
►
app_memory
▼
arch
►
arc
►
arm
►
arm64
►
common
►
mips
►
nios2
►
posix
►
riscv
►
sparc
►
x86
▼
xtensa
►
arch.h
►
arch_inlines.h
►
atomic_xtensa.h
►
cache.h
►
exception.h
►
gdbstub.h
►
irq.h
►
mpu.h
►
syscall.h
thread.h
►
thread_stack.h
►
xtensa_mmu.h
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
►
mctp
►
mem_mgmt
►
mgmt
►
misc
►
modbus
►
modem
►
multi_heap
►
net
►
platform
►
pm
►
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) 2021 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_H_
8
#define ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_H_
9
10
#include <
stdint.h
>
11
#ifndef _ASMLANGUAGE
12
13
#ifdef CONFIG_XTENSA_MPU
14
#include <
zephyr/arch/xtensa/mpu.h
>
15
#endif
16
17
/* Xtensa doesn't use these structs, but Zephyr core requires they be
18
* defined so they can be included in struct _thread_base. Dummy
19
* field exists for sizeof compatibility with C++.
20
*/
21
22
struct
_callee_saved {
23
char
dummy;
24
};
25
26
typedef
struct
_callee_saved _callee_saved_t;
27
28
struct
_thread_arch {
29
uint32_t
last_cpu;
30
#ifdef CONFIG_USERSPACE
31
32
#ifdef CONFIG_XTENSA_MMU
33
uint32_t
*ptables;
34
#endif
35
36
#ifdef CONFIG_XTENSA_MPU
37
/* Pointer to the memory domain's MPU map. */
38
struct
xtensa_mpu_map
*mpu_map;
39
#endif
40
41
/* Initial privilege mode stack pointer when doing a system call.
42
* Un-set for surpervisor threads.
43
*/
44
uint8_t
*psp;
45
#endif
46
};
47
48
typedef
struct
_thread_arch _thread_arch_t;
49
50
#endif
/* _ASMLANGUAGE */
51
52
#endif
/* ZEPHYR_INCLUDE_ARCH_XTENSA_THREAD_H_ */
stdint.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
xtensa_mpu_map
Struct to hold foreground MPU map and its entries.
Definition
mpu.h:186
mpu.h
zephyr
arch
xtensa
thread.h
Generated on Mon Mar 17 2025 00:05:49 for Zephyr API Documentation by
1.12.0