]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/Ia32/FxSave.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / FxSave.c
... / ...
CommitLineData
1/** @file\r
2 AsmFxSave function\r
3\r
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9\r
10#include "BaseLibInternals.h"\r
11\r
12\r
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
18 available on IA-32 and x64.\r
19\r
20 @param Buffer The pointer to a buffer to save the floating point/SSE/SSE2 context.\r
21\r
22**/\r
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