]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteMm5.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteMm5.c
1 /** @file
2 AsmWriteMm5 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 Writes the current value of 64-bit MMX Register #5 (MM5).
11
12 Writes the current value of MM5. This function is only available on IA32 and
13 x64.
14
15 @param Value The 64-bit value to write to MM5.
16
17 **/
18 VOID
19 EFIAPI
20 AsmWriteMm5 (
21 IN UINT64 Value
22 )
23 {
24 _asm {
25 movq mm5, qword ptr [Value]
26 emms
27 }
28 }