]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/FxSave.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxSave.c
1 /** @file
2 AsmFxSave 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 Save the current floating point/SSE/SSE2 context to a buffer.
15
16 Saves the current floating point/SSE/SSE2 state to the buffer specified by
17 Buffer. Buffer must be aligned on a 16-byte boundary. This function is only
18 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 InternalX86FxSave (
26 OUT IA32_FX_BUFFER *Buffer
27 )
28 {
29 _asm {
30 mov eax, Buffer
31 fxsave [eax]
32 }
33 }
34