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