Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
thread.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 NVIDIA Corporation
3 *
4 * based on include/arch/mips/thread.h
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
20
21#ifndef ZEPHYR_INCLUDE_ARCH_OPENRISC_THREAD_H_
22#define ZEPHYR_INCLUDE_ARCH_OPENRISC_THREAD_H_
23
24#ifndef _ASMLANGUAGE
25#include <zephyr/types.h>
26
27/*
28 * The following structure defines the list of registers that need to be
29 * saved/restored when a cooperative context switch occurs.
30 */
31struct _callee_saved {
32 uint32_t r1; /* Stack pointer */
33 uint32_t r2; /* Frame Pointer */
34 uint32_t r9; /* Return Address */
35
36 uint32_t r10;
37 uint32_t r14;
38 uint32_t r16;
39 uint32_t r18;
40 uint32_t r20;
41 uint32_t r22;
42 uint32_t r24;
43 uint32_t r26;
44 uint32_t r28;
45 uint32_t r30;
46};
47typedef struct _callee_saved _callee_saved_t;
48
49struct _thread_arch {
50};
51
52typedef struct _thread_arch _thread_arch_t;
53
54#endif /* _ASMLANGUAGE */
55
56#endif /* ZEPHYR_INCLUDE_ARCH_OPENRISC_THREAD_H_ */
__UINT32_TYPE__ uint32_t
Definition stdint.h:90