]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/ReadMm6.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadMm6.c
1 /** @file
2 AsmReadMm6 function
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Reads the current value of 64-bit MMX Register #6 (MM6).
11
12 Reads and returns the current value of MM6. This function is only available
13 on IA-32 and x64.
14
15 @return The current value of MM6.
16
17 **/
18 UINT64
19 EFIAPI
20 AsmReadMm6 (
21 VOID
22 )
23 {
24 _asm {
25 push eax
26 push eax
27 movq [esp], mm6
28 pop eax
29 pop edx
30 emms
31 }
32 }