Changeset 193 for trunk/hal/x86_64/core/hal_kentry.h
- Timestamp:
- Jul 13, 2017, 9:28:06 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_kentry.h
r146 r193 49 49 #define TF_REGSIZE (19 * 8) 50 50 51 #define PSL_I 0x00000200 52 #define PSL_MBO 0x00000002 53 #define PSL_USERSET (PSL_MBO | PSL_I) 54 51 55 #define INTR_SAVE_REGS \ 52 56 subq $TF_REGSIZE,%rsp ; \ … … 98 102 99 103 /* 100 * The x86_64 trap frame.104 * The x86_64 CPU context. 101 105 */ 102 struct trapframe{106 typedef struct hal_cpu_context_s { 103 107 /* Pushed by INTR_SAVE_REGS */ 104 108 uint64_t tf_rax; … … 125 129 uint64_t tf_trapno; 126 130 127 /* These are pushed for atrap */131 /* Pushed by the hardware if trap */ 128 132 uint64_t tf_err; 129 133 uint64_t tf_rip; … … 131 135 uint64_t tf_rflags; 132 136 133 /* These are always pushed*/137 /* Always pushed by the hardware */ 134 138 uint64_t tf_rsp; 135 139 uint64_t tf_ss; 136 } ;140 } hal_cpu_context_t; 137 141 138 142 /*
Note: See TracChangeset
for help on using the changeset viewer.