]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/FxRestore.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxRestore.c
CommitLineData
e1f414b6 1/** @file\r
2 AsmFxRestore function\r
3\r
bb817c56 4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
e1f414b6 6\r
7**/\r
8\r
47fc17d8 9#include "BaseLibInternals.h"\r
f734a10a 10\r
42eedea9 11/**\r
12 Restores the current floating point/SSE/SSE2 context from a buffer.\r
13\r
14 Restores the current floating point/SSE/SSE2 state from the buffer specified\r
15 by Buffer. Buffer must be aligned on a 16-byte boundary. This function is\r
030cd1a2 16 only available on IA-32 and x64.\r
42eedea9 17\r
2fc59a00 18 @param Buffer The pointer to a buffer to save the floating point/SSE/SSE2 context.\r
42eedea9 19\r
20**/\r
e1f414b6 21VOID\r
22EFIAPI\r
23InternalX86FxRestore (\r
2f88bd3a 24 IN CONST IA32_FX_BUFFER *Buffer\r
e1f414b6 25 )\r
26{\r
27 _asm {\r
28 mov eax, Buffer\r
29 fxrstor [eax]\r
30 }\r
31}\r