CNDP 22.08.0
Loading...
Searching...
No Matches
ctx.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2019-2022 Intel Corporation
3 */
4
5#ifndef _CTX_H
6#define _CTX_H
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*
13 * CPU context registers
14 */
15struct ctx {
16 void *rsp; /* 0 */
17 void *rbp; /* 8 */
18 void *rip; /* 16 */
19 void *rbx; /* 24 */
20 void *r12; /* 32 */
21 void *r13; /* 40 */
22 void *r14; /* 48 */
23 void *r15; /* 56 */
25
26void cthread_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
27
28#ifdef __cplusplus
29}
30#endif
31#endif /* _CTX_H_ */
#define __cne_cache_aligned
Definition cne_common.h:379