1 | ; $Id: TRPMInternal.mac 80015 2019-07-26 16:46:49Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; TRPM - Internal header file.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2006-2019 Oracle Corporation
|
---|
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 |
|
---|
18 | %include "VBox/asmdefs.mac"
|
---|
19 | %include "VBox/vmm/stam.mac"
|
---|
20 |
|
---|
21 | %define TRPM_TRAP_IN_OP_MASK 0xffff
|
---|
22 | %define TRPM_TRAP_IN_MOV_GS 1
|
---|
23 | %define TRPM_TRAP_IN_MOV_FS 2
|
---|
24 | %define TRPM_TRAP_IN_MOV_ES 3
|
---|
25 | %define TRPM_TRAP_IN_MOV_DS 4
|
---|
26 | %define TRPM_TRAP_IN_IRET 5
|
---|
27 | %define TRPM_TRAP_IN_V86 RT_BIT(30)
|
---|
28 |
|
---|
29 | struc TRPM
|
---|
30 | %ifdef VBOX_WITH_STATISTICS
|
---|
31 | .paStatForwardedIRQR3 RTR3PTR_RES 1
|
---|
32 | %endif
|
---|
33 | .u64Dummy resq 1
|
---|
34 | endstruc
|
---|
35 |
|
---|
36 | struc TRPMCPU
|
---|
37 | .uActiveVector resd 1
|
---|
38 | .enmActiveType resd 1
|
---|
39 | .uActiveErrorCode RTGCPTR_RES 1
|
---|
40 | .uActiveCR2 RTGCPTR_RES 1
|
---|
41 | .uSavedVector RTGCPTR_RES 1
|
---|
42 | .uSavedErrorCode RTGCPTR_RES 1
|
---|
43 | .uSavedCR2 RTGCPTR_RES 1
|
---|
44 | .enmSavedType resd 1
|
---|
45 | .cbInstr resb 1
|
---|
46 | .cbSavedInstr resb 1
|
---|
47 | .au8Padding resb 2
|
---|
48 | .uPrevVector RTGCPTR_RES 1
|
---|
49 | endstruc
|
---|
50 |
|
---|
51 | struc VBOXTSS
|
---|
52 | .selPrev resw 1
|
---|
53 | .padding1 resw 1
|
---|
54 | .esp0 resd 1
|
---|
55 | .ss0 resw 1
|
---|
56 | .padding_ss0 resw 1
|
---|
57 | .esp1 resd 1
|
---|
58 | .ss1 resw 1
|
---|
59 | .padding_ss1 resw 1
|
---|
60 | .esp2 resd 1
|
---|
61 | .ss2 resw 1
|
---|
62 | .padding_ss2 resw 1
|
---|
63 | .cr3 resd 1
|
---|
64 | .eip resd 1
|
---|
65 | .eflags resd 1
|
---|
66 | .eax resd 1
|
---|
67 | .ecx resd 1
|
---|
68 | .edx resd 1
|
---|
69 | .ebx resd 1
|
---|
70 | .esp resd 1
|
---|
71 | .ebp resd 1
|
---|
72 | .esi resd 1
|
---|
73 | .edi resd 1
|
---|
74 | .es resw 1
|
---|
75 | .padding_es resw 1
|
---|
76 | .cs resw 1
|
---|
77 | .padding_cs resw 1
|
---|
78 | .ss resw 1
|
---|
79 | .padding_ss resw 1
|
---|
80 | .ds resw 1
|
---|
81 | .padding_ds resw 1
|
---|
82 | .fs resw 1
|
---|
83 | .padding_fs resw 1
|
---|
84 | .gs resw 1
|
---|
85 | .padding_gs resw 1
|
---|
86 | .selLdt resw 1
|
---|
87 | .padding_ldt resw 1
|
---|
88 | .fDebugTrap resw 1
|
---|
89 | .offIoBitmap resw 1
|
---|
90 | .IntRedirBitmap resb 32
|
---|
91 | endstruc
|
---|
92 |
|
---|