f-stack/dpdk/examples/performance-thread/common/arch/x86/ctx.h

37 lines
496 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2015 Intel Corporation
2017-04-21 10:43:26 +00:00
*/
#ifndef CTX_H
#define CTX_H
#ifdef __cplusplus
extern "C" {
#endif
2017-04-21 10:43:26 +00:00
/*
* CPU context registers
*/
struct ctx {
void *rsp; /* 0 */
void *rbp; /* 8 */
void *rip; /* 16 */
void *rbx; /* 24 */
void *r12; /* 32 */
void *r13; /* 40 */
void *r14; /* 48 */
void *r15; /* 56 */
};
void
ctx_switch(struct ctx *new_ctx, struct ctx *curr_ctx);
#ifdef __cplusplus
}
#endif
2017-04-21 10:43:26 +00:00
#endif /* RTE_CTX_H_ */