]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/Mwait.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / Mwait.nasm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; Mwait.Asm
9 ;
10 ; Abstract:
11 ;
12 ; AsmMwait function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 SECTION .text
19
20 ;------------------------------------------------------------------------------
21 ; UINTN
22 ; EFIAPI
23 ; AsmMwait (
24 ; IN UINTN Eax,
25 ; IN UINTN Ecx
26 ; );
27 ;------------------------------------------------------------------------------
28 global ASM_PFX(AsmMwait)
29 ASM_PFX(AsmMwait):
30 mov eax, [esp + 4]
31 mov ecx, [esp + 8]
32 DB 0xf, 1, 0xc9 ; mwait
33 ret
34