1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2015 Intel Corporation
3  */
4 
5 
6 #ifndef CTX_H
7 #define CTX_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*
14  * CPU context registers
15  */
16 struct ctx {
17 	void	*rsp;		/* 0  */
18 	void	*rbp;		/* 8  */
19 	void	*rip;		/* 16 */
20 	void	*rbx;		/* 24 */
21 	void	*r12;		/* 32 */
22 	void	*r13;		/* 40 */
23 	void	*r14;		/* 48 */
24 	void	*r15;		/* 56 */
25 };
26 
27 
28 void
29 ctx_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
30 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif /* RTE_CTX_H_ */
37