Last change
on this file since 7095 was 7095, checked in by vboxsync, 17 years ago |
Extended the CPUMCTX structure for 64 bits mode.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
5.3 KB
|
Line | |
---|
1 | ;; @file
|
---|
2 | ;
|
---|
3 | ; CPUM - CPU Monitor.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2006-2007 innotek GmbH
|
---|
8 | ;
|
---|
9 | ; This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | ; available from http://www.virtualbox.org. This file is free software;
|
---|
11 | ; you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | ; General Public License (GPL) as published by the Free Software
|
---|
13 | ; Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | ;
|
---|
17 | ; The contents of this file may alternatively be used under the terms
|
---|
18 | ; of the Common Development and Distribution License Version 1.0
|
---|
19 | ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | ; VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | ; CDDL are applicable instead of those of the GPL.
|
---|
22 | ;
|
---|
23 | ; You may elect to license modified versions of this file under the
|
---|
24 | ; terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | ;
|
---|
26 |
|
---|
27 | %ifndef __VBox_cpum_mac__
|
---|
28 | %define __VBox_cpum_mac__
|
---|
29 |
|
---|
30 |
|
---|
31 | ;;
|
---|
32 | ; Registers frame.
|
---|
33 | ; This is used internally in TRPM, VMMSwitcher_GuestToHost_GuestCtx
|
---|
34 | ; and other places.
|
---|
35 | struc CPUMCTXCORE
|
---|
36 | .edi resq 1
|
---|
37 | .esi resq 1
|
---|
38 | .ebp resq 1
|
---|
39 | .eax resq 1
|
---|
40 | .ebx resq 1
|
---|
41 | .edx resq 1
|
---|
42 | .ecx resq 1
|
---|
43 | .esp resd 1
|
---|
44 | .ss resw 1
|
---|
45 | .ssPadding resw 3
|
---|
46 | .gs resw 1
|
---|
47 | .gsPadding resw 1
|
---|
48 | .fs resw 1
|
---|
49 | .fsPadding resw 1
|
---|
50 | .es resw 1
|
---|
51 | .esPadding resw 1
|
---|
52 | .ds resw 1
|
---|
53 | .dsPadding resw 1
|
---|
54 | .cs resw 1
|
---|
55 | .csPadding resw 1
|
---|
56 | .eflags resq 1
|
---|
57 | .eip resq 1
|
---|
58 |
|
---|
59 | .r8 resq 1
|
---|
60 | .r9 resq 1
|
---|
61 | .r10 resq 1
|
---|
62 | .r11 resq 1
|
---|
63 | .r12 resq 1
|
---|
64 | .r13 resq 1
|
---|
65 | .r14 resq 1
|
---|
66 | .r15 resq 1
|
---|
67 |
|
---|
68 | .esHid.u32Base resd 1
|
---|
69 | .esHid.u32Limit resd 1
|
---|
70 | .esHid.Attr resd 1
|
---|
71 |
|
---|
72 | .csHid.u32Base resd 1
|
---|
73 | .csHid.u32Limit resd 1
|
---|
74 | .csHid.Attr resd 1
|
---|
75 |
|
---|
76 | .ssHid.u32Base resd 1
|
---|
77 | .ssHid.u32Limit resd 1
|
---|
78 | .ssHid.Attr resd 1
|
---|
79 |
|
---|
80 | .dsHid.u32Base resd 1
|
---|
81 | .dsHid.u32Limit resd 1
|
---|
82 | .dsHid.Attr resd 1
|
---|
83 |
|
---|
84 | .fsHid.u32Base resd 1
|
---|
85 | .fsHid.u32Limit resd 1
|
---|
86 | .fsHid.Attr resd 1
|
---|
87 |
|
---|
88 | .gsHid.u32Base resd 1
|
---|
89 | .gsHid.u32Limit resd 1
|
---|
90 | .gsHid.Attr resd 1
|
---|
91 |
|
---|
92 | endstruc
|
---|
93 |
|
---|
94 |
|
---|
95 | struc CPUMCTX
|
---|
96 | .fpu resb 512
|
---|
97 |
|
---|
98 | .edi resq 1
|
---|
99 | .esi resq 1
|
---|
100 | .ebp resq 1
|
---|
101 | .eax resq 1
|
---|
102 | .ebx resq 1
|
---|
103 | .edx resq 1
|
---|
104 | .ecx resq 1
|
---|
105 | .esp resd 1
|
---|
106 | .ss resw 1
|
---|
107 | .ssPadding resw 3
|
---|
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 1
|
---|
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.u32Base resd 1
|
---|
131 | .esHid.u32Limit resd 1
|
---|
132 | .esHid.Attr resd 1
|
---|
133 |
|
---|
134 | .csHid.u32Base resd 1
|
---|
135 | .csHid.u32Limit resd 1
|
---|
136 | .csHid.Attr resd 1
|
---|
137 |
|
---|
138 | .ssHid.u32Base resd 1
|
---|
139 | .ssHid.u32Limit resd 1
|
---|
140 | .ssHid.Attr resd 1
|
---|
141 |
|
---|
142 | .dsHid.u32Base resd 1
|
---|
143 | .dsHid.u32Limit resd 1
|
---|
144 | .dsHid.Attr resd 1
|
---|
145 |
|
---|
146 | .fsHid.u32Base resd 1
|
---|
147 | .fsHid.u32Limit resd 1
|
---|
148 | .fsHid.Attr resd 1
|
---|
149 |
|
---|
150 | .gsHid.u32Base resd 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 | .cr8 resq 1
|
---|
160 |
|
---|
161 | .dr0 resq 1
|
---|
162 | .dr1 resq 1
|
---|
163 | .dr2 resq 1
|
---|
164 | .dr3 resq 1
|
---|
165 | .dr4 resq 1
|
---|
166 | .dr5 resq 1
|
---|
167 | .dr6 resq 1
|
---|
168 | .dr7 resq 1
|
---|
169 |
|
---|
170 | .gdtr resb 6 ; GDT limit + linear address
|
---|
171 | .gdtrPadding resw 1
|
---|
172 | .gdtrPadding64 resd 1
|
---|
173 | .idtr resb 6 ; IDT limit + linear address
|
---|
174 | .idtrPadding resw 1
|
---|
175 | .idtrPadding64 resd 1
|
---|
176 | .ldtr resw 1
|
---|
177 | .ldtrPadding resw 1
|
---|
178 | .tr resw 1
|
---|
179 | .trPadding resw 1
|
---|
180 |
|
---|
181 | .SysEnter.cs resb 8
|
---|
182 | .SysEnter.eip resb 8
|
---|
183 | .SysEnter.esp resb 8
|
---|
184 |
|
---|
185 | .ldtrHid.u32Base resd 1
|
---|
186 | .ldtrHid.u32Limit resd 1
|
---|
187 | .ldtrHid.Attr resd 1
|
---|
188 |
|
---|
189 | .trHid.u32Base resd 1
|
---|
190 | .trHid.u32Limit resd 1
|
---|
191 | .trHid.Attr resd 1
|
---|
192 |
|
---|
193 | ; padding
|
---|
194 | .padding resd 6
|
---|
195 | endstruc
|
---|
196 |
|
---|
197 | %endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.