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
►
arch.h
►
arch_inlines.h
►
exception.h
►
sparc.h
thread.h
►
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
►
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) 2019-2020 Cobham Gaisler AB
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
19
#ifndef ZEPHYR_INCLUDE_ARCH_SPARC_THREAD_H_
20
#define ZEPHYR_INCLUDE_ARCH_SPARC_THREAD_H_
21
22
#ifndef _ASMLANGUAGE
23
#include <
zephyr/types.h
>
24
25
/*
26
* The following structure defines the list of registers that need to be
27
* saved/restored when a cooperative context switch occurs.
28
*/
29
struct
_callee_saved {
30
/* y register used by mul/div */
31
uint32_t
y;
32
33
/* processor status register */
34
uint32_t
psr;
35
36
/*
37
* local registers
38
*
39
* Using uint64_t l0_and_l1 will put everything in this structure on a
40
* double word boundary which allows us to use double word loads and
41
* stores safely in the context switch.
42
*/
43
uint64_t
l0_and_l1;
44
uint32_t
l2;
45
uint32_t
l3;
46
uint32_t
l4;
47
uint32_t
l5;
48
uint32_t
l6;
49
uint32_t
l7;
50
51
/* input registers */
52
uint32_t
i0;
53
uint32_t
i1;
54
uint32_t
i2;
55
uint32_t
i3;
56
uint32_t
i4;
57
uint32_t
i5;
58
uint32_t
i6;
/* frame pointer */
59
uint32_t
i7;
60
61
/* output registers */
62
uint32_t
o6;
/* stack pointer */
63
uint32_t
o7;
64
65
};
66
typedef
struct
_callee_saved _callee_saved_t;
67
68
struct
_thread_arch {
69
/* empty */
70
};
71
72
typedef
struct
_thread_arch _thread_arch_t;
73
74
#endif
/* _ASMLANGUAGE */
75
76
#endif
/* ZEPHYR_INCLUDE_ARCH_SPARC_THREAD_H_ */
types.h
uint32_t
__UINT32_TYPE__ uint32_t
Definition
stdint.h:90
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
zephyr
arch
sparc
thread.h
Generated on Mon Mar 17 2025 00:05:49 for Zephyr API Documentation by
1.12.0