550W Document
550W, a high-end OS
context.h
浏览该文件的文档.
1 #pragma once
2 
3 #include <common/types.h>
4 
5 #define NORMAL_REGS_NUM 31
6 
7 /* used to save register infomation */
8 typedef struct regs_context {
9  /* Saved main processor registers.*/
11 
12  /* Saved special registers. */
18 
19 /* used to save register infomation in switch_to */
20 typedef struct switchto_context {
21  /* Callee saved registers.*/
22  reg_t regs[14];
struct regs_context regs_context_t
struct switchto_context switchto_context_t
#define NORMAL_REGS_NUM
Definition: context.h:5
Definition: context.h:8
reg_t regs[NORMAL_REGS_NUM]
Definition: context.h:10
reg_t sstatus
Definition: context.h:13
reg_t scause
Definition: context.h:16
reg_t sepc
Definition: context.h:14
reg_t sbadaddr
Definition: context.h:15
Definition: context.h:20
reg_t regs[14]
Definition: context.h:22
uint64_t reg_t
Definition: types.h:43