]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/FxSave.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxSave.c
CommitLineData
e1f414b6 1/** @file\r
2 AsmFxSave 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
1efcc4ae 9\r
47fc17d8 10#include "BaseLibInternals.h"\r
f734a10a 11\r
e1f414b6 12\r
42eedea9 13/**\r
14 Save the current floating point/SSE/SSE2 context to a buffer.\r
15\r
16 Saves the current floating point/SSE/SSE2 state to the buffer specified by\r
17 Buffer. Buffer must be aligned on a 16-byte boundary. This function is only\r
030cd1a2 18 available on IA-32 and x64.\r
42eedea9 19\r
2fc59a00 20 @param Buffer The pointer to a buffer to save the floating point/SSE/SSE2 context.\r
42eedea9 21\r
22**/\r
e1f414b6 23VOID\r
24EFIAPI\r
25InternalX86FxSave (\r
26 OUT IA32_FX_BUFFER *Buffer\r
27 )\r
28{\r
29 _asm {\r
30 mov eax, Buffer\r
31 fxsave [eax]\r
32 }\r
33}\r
34\r