Changeset 339 for trunk/hal/x86_64/core/hal_kentry.h
- Timestamp:
- Aug 7, 2017, 3:11:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_kentry.h
r335 r339 45 45 #define T_USER 0x100 46 46 47 #define CPUVAR(off) %gs:CPU_INFO_ ## off47 #define TLSVAR(off) %gs:TLS_ ## off 48 48 49 49 /* … … 128 128 129 129 /* 130 * The x86_64 CPU trap frame. 130 * The x86_64 CPU trap frame. !!WARNING!! The size of this structure must be 131 * exactly TF_SIZE. 131 132 */ 132 133 typedef struct hal_trapframe_s { … … 168 169 typedef struct hal_cpu_context_s { 169 170 uint64_t ctx_rsp0; 170 uint64_t ctx_ rsp;171 uint64_t ctx_rbp;171 uint64_t ctx_tf; 172 hal_trapframe_t ctx_hidden_tf; 172 173 } hal_cpu_context_t; 173 174 174 175 #else 175 176 176 /* offsets in the trapframe structure */177 /* Offsets in the trapframe structure */ 177 178 #define TF_RAX 0 178 179 #define TF_RBX 8 … … 195 196 #define TF_DS 144 196 197 198 /* Size of the trapframe structure */ 199 #define TF_SIZE 208 200 201 /* Offsets in the context structure */ 202 #define CTX_RSP0 0 203 #define CTX_TF 8 204 197 205 #endif 198 206
Note: See TracChangeset
for help on using the changeset viewer.