]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/Mwait.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / 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 DEFAULT REL
19 SECTION .text
20
21 ;------------------------------------------------------------------------------
22 ; UINT64
23 ; EFIAPI
24 ; AsmMwait (
25 ; IN UINTN Eax,
26 ; IN UINTN Ecx
27 ; );
28 ;------------------------------------------------------------------------------
29 global ASM_PFX(AsmMwait)
30 ASM_PFX(AsmMwait):
31 mov eax, ecx
32 mov ecx, edx
33 DB 0xf, 1, 0xc9 ; mwait
34 ret
35