VirtualBox

source: vbox/trunk/include/VBox/cpum.mac@ 31890

Last change on this file since 31890 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.3 KB
Line 
1;; @file
2; CPUM - CPU Monitor, Assembly header file.
3;
4
5;
6; Copyright (C) 2006-2009 Oracle Corporation
7;
8; This file is part of VirtualBox Open Source Edition (OSE), as
9; available from http://www.virtualbox.org. This file is free software;
10; you can redistribute it and/or modify it under the terms of the GNU
11; General Public License (GPL) as published by the Free Software
12; Foundation, in version 2 as it comes in the "COPYING" file of the
13; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15;
16; The contents of this file may alternatively be used under the terms
17; of the Common Development and Distribution License Version 1.0
18; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19; VirtualBox OSE distribution, in which case the provisions of the
20; CDDL are applicable instead of those of the GPL.
21;
22; You may elect to license modified versions of this file under the
23; terms and conditions of either the GPL or the CDDL or both.
24;
25
26%ifndef __VBox_cpum_mac__
27%define __VBox_cpum_mac__
28
29;;
30; Registers frame.
31; This is used internally in TRPM, VMMSwitcher_GuestToHost_GuestCtx
32; and other places.
33struc CPUMCTXCORE
34 .edi resq 1
35 .esi resq 1
36 .ebp resq 1
37 .eax resq 1
38 .ebx resq 1
39 .edx resq 1
40 .ecx resq 1
41 .esp resq 1
42 .lss_esp resd 1
43 .ss resw 1
44 .ssPadding resw 1
45 .gs resw 1
46 .gsPadding resw 1
47 .fs resw 1
48 .fsPadding resw 1
49 .es resw 1
50 .esPadding resw 1
51 .ds resw 1
52 .dsPadding resw 1
53 .cs resw 1
54 .csPadding resw 3
55 .eflags resq 1
56 .eip resq 1
57
58 .r8 resq 1
59 .r9 resq 1
60 .r10 resq 1
61 .r11 resq 1
62 .r12 resq 1
63 .r13 resq 1
64 .r14 resq 1
65 .r15 resq 1
66
67 .esHid.u64Base resq 1
68 .esHid.u32Limit resd 1
69 .esHid.Attr resd 1
70
71 .csHid.u64Base resq 1
72 .csHid.u32Limit resd 1
73 .csHid.Attr resd 1
74
75 .ssHid.u64Base resq 1
76 .ssHid.u32Limit resd 1
77 .ssHid.Attr resd 1
78
79 .dsHid.u64Base resq 1
80 .dsHid.u32Limit resd 1
81 .dsHid.Attr resd 1
82
83 .fsHid.u64Base resq 1
84 .fsHid.u32Limit resd 1
85 .fsHid.Attr resd 1
86
87 .gsHid.u64Base resq 1
88 .gsHid.u32Limit resd 1
89 .gsHid.Attr resd 1
90
91endstruc
92
93
94struc CPUMCTX
95 .fpu resb 512
96
97 .edi resq 1
98 .esi resq 1
99 .ebp resq 1
100 .eax resq 1
101 .ebx resq 1
102 .edx resq 1
103 .ecx resq 1
104 .esp resq 1
105 .lss_esp resd 1
106 .ss resw 1
107 .ssPadding resw 1
108 .gs resw 1
109 .gsPadding resw 1
110 .fs resw 1
111 .fsPadding resw 1
112 .es resw 1
113 .esPadding resw 1
114 .ds resw 1
115 .dsPadding resw 1
116 .cs resw 1
117 .csPadding resw 3
118 .eflags resq 1
119 .eip resq 1
120
121 .r8 resq 1
122 .r9 resq 1
123 .r10 resq 1
124 .r11 resq 1
125 .r12 resq 1
126 .r13 resq 1
127 .r14 resq 1
128 .r15 resq 1
129
130 .esHid.u64Base resq 1
131 .esHid.u32Limit resd 1
132 .esHid.Attr resd 1
133
134 .csHid.u64Base resq 1
135 .csHid.u32Limit resd 1
136 .csHid.Attr resd 1
137
138 .ssHid.u64Base resq 1
139 .ssHid.u32Limit resd 1
140 .ssHid.Attr resd 1
141
142 .dsHid.u64Base resq 1
143 .dsHid.u32Limit resd 1
144 .dsHid.Attr resd 1
145
146 .fsHid.u64Base resq 1
147 .fsHid.u32Limit resd 1
148 .fsHid.Attr resd 1
149
150 .gsHid.u64Base resq 1
151 .gsHid.u32Limit resd 1
152 .gsHid.Attr resd 1
153
154
155 .cr0 resq 1
156 .cr2 resq 1
157 .cr3 resq 1
158 .cr4 resq 1
159
160 .dr resq 8
161
162 .gdtr.cbGdt resw 1
163 .gdtr.pGdt resq 1
164 .gdtrPadding resw 1
165 .idtr.cbIdt resw 1
166 .idtr.pIdt resq 1
167 .idtrPadding resw 1
168 .ldtr resw 1
169 .ldtrPadding resw 1
170 .tr resw 1
171 .trPadding resw 1
172
173 .SysEnter.cs resb 8
174 .SysEnter.eip resb 8
175 .SysEnter.esp resb 8
176
177 .msrEFER resb 8
178 .msrSTAR resb 8
179 .msrPAT resb 8
180 .msrLSTAR resb 8
181 .msrCSTAR resb 8
182 .msrSFMASK resb 8
183 .msrKERNELGSBASE resb 8
184
185 .ldtrHid.u64Base resq 1
186 .ldtrHid.u32Limit resd 1
187 .ldtrHid.Attr resd 1
188
189 .trHid.u64Base resq 1
190 .trHid.u32Limit resd 1
191 .trHid.Attr resd 1
192
193 ; padding
194;;; .padding resd 6
195endstruc
196
197
198;;/* Guest MSR state. */
199struc CPUMCTXMSR
200 .au64 resq 64
201endstruc
202
203;;
204; FPU/XMM state
205;;
206struc X86FXSTATE
207 ;/** Control word. */
208 .FCW resw 1
209 ;/** Status word. */
210 .FSW resw 1
211 ;/** Tag word. */
212 .FTW resw 1
213 ;/** Opcode. */
214 .FOP resw 1
215 ;/** Instruction pointer. */
216 .FPUIP resd 1
217 ;/** Code selector. */
218 .CS resw 1
219 .Rsvrd1 resw 1
220 ;/* - offset 16 - */
221 ;/** Data pointer. */
222 .FPUDP resd 1
223 ;/** Data segment */
224 .DS resw 1
225 .Rsrvd2 resw 1
226 .MXCSR resd 1
227 .MXCSR_MASK resd 1
228 ;/* - offset 32 - */
229 ; FPU & MMX registers
230 .aRegs resq 8*2
231 ;/* - offset 160 - */
232 ;/* 8 XMM registers in 32 bits mode; 16 in long mode */
233 .aXMM resq 16*2
234 ;/* - offset 416 - */
235 .au32RsrvdRest resd (512 - 416) / 4
236endstruc
237
238%endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette