VirtualBox

source: vbox/trunk/src/VBox/VMM/VMMSwitcher/AMD64Stub.asm@ 78285

Last change on this file since 78285 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1; $Id: AMD64Stub.asm 76553 2019-01-01 01:45:53Z vboxsync $
2;; @file
3; VMM - World Switchers, AMD64 Stub.
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;*******************************************************************************
19;* Defined Constants And Macros *
20;*******************************************************************************
21%define NAME_OVERLOAD(name) vmmR3SwitcherAMD64Stub_ %+ name
22
23;*******************************************************************************
24;* Header Files *
25;*******************************************************************************
26%include "VBox/asmdefs.mac"
27%include "VBox/err.mac"
28%include "VMMSwitcher.mac"
29
30
31BEGINCODE
32GLOBALNAME Start
33
34BITS 32
35
36BEGINPROC vmmR0ToRawMode
37 mov eax, VERR_VMM_SWITCHER_STUB
38 ret
39ENDPROC vmmR0ToRawMode
40
41BITS 32
42BEGINPROC vmmRCCallTrampoline
43.tight_loop:
44 int3
45 jmp .tight_loop
46ENDPROC vmmRCCallTrampoline
47
48BEGINPROC vmmRCToHost
49 mov eax, VERR_VMM_SWITCHER_STUB
50 ret
51ENDPROC vmmRCToHost
52
53BEGINPROC vmmRCToHostAsmNoReturn
54 mov eax, VERR_VMM_SWITCHER_STUB
55 ret
56ENDPROC vmmRCToHostAsmNoReturn
57
58BEGINPROC vmmRCToHostAsm
59 mov eax, VERR_VMM_SWITCHER_STUB
60 ret
61ENDPROC vmmRCToHostAsm
62
63GLOBALNAME End
64
65;
66; The description string (in the text section).
67;
68NAME(Description):
69 db "AMD64 Stub."
70 db 0
71
72
73;
74; Dummy fixups.
75;
76BEGINDATA
77GLOBALNAME Fixups
78 db FIX_THE_END ; final entry.
79GLOBALNAME FixupsEnd
80
81
82;;
83; The switcher definition structure.
84ALIGNDATA(16)
85GLOBALNAME Def
86 istruc VMMSWITCHERDEF
87 at VMMSWITCHERDEF.pvCode, RTCCPTR_DEF NAME(Start)
88 at VMMSWITCHERDEF.pvFixups, RTCCPTR_DEF NAME(Fixups)
89 at VMMSWITCHERDEF.pszDesc, RTCCPTR_DEF NAME(Description)
90 at VMMSWITCHERDEF.pfnRelocate, RTCCPTR_DEF 0
91 at VMMSWITCHERDEF.enmType, dd VMMSWITCHER_AMD64_STUB
92 at VMMSWITCHERDEF.cbCode, dd NAME(End) - NAME(Start)
93 at VMMSWITCHERDEF.offR0ToRawMode, dd NAME(vmmR0ToRawMode) - NAME(Start)
94 at VMMSWITCHERDEF.offRCToHost, dd NAME(vmmRCToHost) - NAME(Start)
95 at VMMSWITCHERDEF.offRCCallTrampoline, dd NAME(vmmRCCallTrampoline) - NAME(Start)
96 at VMMSWITCHERDEF.offRCToHostAsm, dd NAME(vmmRCToHostAsm) - NAME(Start)
97 at VMMSWITCHERDEF.offRCToHostAsmNoReturn, dd NAME(vmmRCToHostAsmNoReturn) - NAME(Start)
98 ; disasm help
99 at VMMSWITCHERDEF.offHCCode0, dd 0
100 at VMMSWITCHERDEF.cbHCCode0, dd NAME(vmmRCCallTrampoline) - NAME(Start)
101 at VMMSWITCHERDEF.offHCCode1, dd 0
102 at VMMSWITCHERDEF.cbHCCode1, dd 0
103 at VMMSWITCHERDEF.offIDCode0, dd 0
104 at VMMSWITCHERDEF.cbIDCode0, dd 0
105 at VMMSWITCHERDEF.offIDCode1, dd 0
106 at VMMSWITCHERDEF.cbIDCode1, dd 0
107 at VMMSWITCHERDEF.offGCCode, dd NAME(vmmRCCallTrampoline) - NAME(Start)
108 at VMMSWITCHERDEF.cbGCCode, dd NAME(End) - NAME(vmmRCCallTrampoline)
109
110 iend
111
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