]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/FxRestore.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxRestore.c
1 /** @file
2 AsmFxRestore 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 #include "BaseLibInternals.h"
10
11 /**
12 Restores the current floating point/SSE/SSE2 context from a buffer.
13
14 Restores the current floating point/SSE/SSE2 state from the buffer specified
15 by Buffer. Buffer must be aligned on a 16-byte boundary. This function is
16 only available on IA-32 and x64.
17
18 @param Buffer The pointer to a buffer to save the floating point/SSE/SSE2 context.
19
20 **/
21 VOID
22 EFIAPI
23 InternalX86FxRestore (
24 IN CONST IA32_FX_BUFFER *Buffer
25 )
26 {
27 _asm {
28 mov eax, Buffer
29 fxrstor [eax]
30 }
31 }