Blog
Community
Development
Documentation
CNDP
22.08.0
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
9
extern
"C"
{
10
#endif
11
12
/*
13
* CPU context registers
14
*/
15
struct
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 */
24
}
__cne_cache_aligned
;
25
26
void
cthread_switch(
struct
ctx *new_ctx,
struct
ctx *curr_ctx);
27
28
#ifdef __cplusplus
29
}
30
#endif
31
#endif
/* _CTX_H_ */
__cne_cache_aligned
#define __cne_cache_aligned
Definition:
cne_common.h:379
lib
usr
clib
cthread
ctx.h
Generated by
1.9.1