VirtualBox

source: vbox/trunk/src/VBox/VMM/TRPMInternal.mac@ 9176

Last change on this file since 9176 was 8155, checked in by vboxsync, 17 years ago

The Big Sun Rebranding Header Change

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1; $Id: TRPMInternal.mac 8155 2008-04-18 15:16:47Z vboxsync $
2;; @file
3; TRPM - Internal header file.
4;
5
6;
7; Copyright (C) 2006-2007 Sun Microsystems, Inc.
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; Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18; Clara, CA 95054 USA or visit http://www.sun.com if you need
19; additional information or have any questions.
20;
21
22%include "VBox/stam.mac"
23
24%define TRPM_TRAP_IN_OP_MASK 0xffff
25%define TRPM_TRAP_IN_MOV_GS 1
26%define TRPM_TRAP_IN_MOV_FS 2
27%define TRPM_TRAP_IN_MOV_ES 3
28%define TRPM_TRAP_IN_MOV_DS 4
29%define TRPM_TRAP_IN_IRET 5
30%define TRPM_TRAP_IN_V86 RT_BIT(30)
31%define TRPM_TRAP_IN_HYPER RT_BIT(31)
32
33
34struc TRPM
35 .offVM resd 1
36 .uActiveVector resd 1
37 .enmActiveType resd 1
38 .uActiveErrorCode resd 1
39 .uActiveCR2 resd 1
40 .uSavedVector resd 1
41 .enmSavedType resd 1
42 .uSavedErrorCode resd 1
43 .uSavedCR2 resd 1
44 .uPrevVector resd 1
45 .fDisableMonitoring resb 1
46 .fSafeToDropGuestIDTMonitoring resb 1
47 .abPadding1 resb 6
48 .aIdt resd 512
49 .au32IdtPatched resd 8
50 .aTmpTrapHandlers resd 256
51
52 .GCPtrIdt resd 1
53 .GuestIdtr resb 6
54 .au8Padding resb 2
55
56 .aGuestTrapHandler resd 256
57
58 .StatGCWriteGuestIDTFault resb STAMCOUNTER_size
59 .StatGCWriteGuestIDTHandled resb STAMCOUNTER_size
60 .StatSyncIDT resb STAMPROFILE_size
61 .aStatGCTraps resb STAMPROFILEADV_size * 0x14
62
63 .StatForwardFailNoHandler resb STAMCOUNTER_size
64 .StatForwardFailPatchAddr resb STAMCOUNTER_size
65 .StatForwardFailGC resb STAMCOUNTER_size
66 .StatForwardFailHC resb STAMCOUNTER_size
67
68 .StatForwardProfGC resb STAMPROFILEADV_size
69 .StatForwardProfHC resb STAMPROFILEADV_size
70 .StatTrap0dDisasm resb STAMPROFILE_size
71 .StatTrap0dRdTsc resb STAMCOUNTER_size
72
73 .paStatForwardedIRQR3 RTR3PTR_RES 1
74 .paStatForwardedIRQR0 RTR0PTR_RES 1
75 .paStatForwardedIRQGC RTGCPTR_RES 1
76endstruc
77
78struc VBOXTSS
79 .selPrev resw 1
80 .padding1 resw 1
81 .esp0 resd 1
82 .ss0 resw 1
83 .padding_ss0 resw 1
84 .esp1 resd 1
85 .ss1 resw 1
86 .padding_ss1 resw 1
87 .esp2 resd 1
88 .ss2 resw 1
89 .padding_ss2 resw 1
90 .cr3 resd 1
91 .eip resd 1
92 .eflags resd 1
93 .eax resd 1
94 .ecx resd 1
95 .edx resd 1
96 .ebx resd 1
97 .esp resd 1
98 .ebp resd 1
99 .esi resd 1
100 .edi resd 1
101 .es resw 1
102 .padding_es resw 1
103 .cs resw 1
104 .padding_cs resw 1
105 .ss resw 1
106 .padding_ss resw 1
107 .ds resw 1
108 .padding_ds resw 1
109 .fs resw 1
110 .padding_fs resw 1
111 .gs resw 1
112 .padding_gs resw 1
113 .selLdt resw 1
114 .padding_ldt resw 1
115 .fDebugTrap resw 1
116 .offIoBitmap resw 1
117 .IntRedirBitmap resb 32
118endstruc
119
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