]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/XSetBv.nasm
MdePkg/BaseLib: Add support for the XSETBV instruction
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / XSetBv.nasm
CommitLineData
4ac02962
JW
1;------------------------------------------------------------------------------\r
2;\r
3; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>\r
4; SPDX-License-Identifier: BSD-2-Clause-Patent\r
5;\r
6; Module Name:\r
7;\r
8; XSetBv.nasm\r
9;\r
10; Abstract:\r
11;\r
12; AsmXSetBv function\r
13;\r
14; Notes:\r
15;\r
16;------------------------------------------------------------------------------\r
17\r
18 SECTION .text\r
19\r
20;------------------------------------------------------------------------------\r
21; UINT64\r
22; EFIAPI\r
23; AsmXSetBv (\r
24; IN UINT32 Index,\r
25; IN UINT64 Value\r
26; );\r
27;------------------------------------------------------------------------------\r
28global ASM_PFX(AsmXSetBv)\r
29ASM_PFX(AsmXSetBv):\r
30 mov edx, [esp + 12]\r
31 mov eax, [esp + 8]\r
32 mov ecx, [esp + 4]\r
33 xsetbv\r
34 ret\r