Zephyr Project API
3.6.0
A Scalable Open Source RTOS
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
/* Xtensa doesn't use these structs, but Zephyr core requires they be
14
* defined so they can be included in struct _thread_base. Dummy
15
* field exists for sizeof compatibility with C++.
16
*/
17
18
struct
_callee_saved {
19
char
dummy;
20
};
21
22
typedef
struct
_callee_saved _callee_saved_t;
23
24
struct
_thread_arch {
25
uint32_t
last_cpu;
26
#ifdef CONFIG_USERSPACE
27
uint32_t
*ptables;
28
29
/* Initial privilege mode stack pointer when doing a system call.
30
* Un-set for surpervisor threads.
31
*/
32
uint8_t
*psp;
33
#endif
34
};
35
36
typedef
struct
_thread_arch _thread_arch_t;
37
38
#endif
/* _ASMLANGUAGE */
39
40
#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
include
zephyr
arch
xtensa
thread.h
Generated on Sat Mar 23 2024 04:37:22 for Zephyr Project API by
1.9.8