]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/VmgExit.nasm
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / VmgExit.nasm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; VmgExit.Asm
9 ;
10 ; Abstract:
11 ;
12 ; AsmVmgExit function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 SECTION .text
19
20 ;------------------------------------------------------------------------------
21 ; VOID
22 ; EFIAPI
23 ; AsmVmgExit (
24 ; VOID
25 ; );
26 ;------------------------------------------------------------------------------
27 global ASM_PFX(AsmVmgExit)
28 ASM_PFX(AsmVmgExit):
29 ;
30 ; NASM doesn't support the vmmcall instruction in 32-bit mode and NASM versions
31 ; before 2.12 cannot translate the 64-bit "rep vmmcall" instruction into elf32
32 ; format. Given that VMGEXIT does not make sense on IA32, provide a stub
33 ; implementation that is identical to CpuBreakpoint(). In practice, AsmVmgExit()
34 ; should never be called on IA32.
35 ;
36 int 3
37 ret
38