]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/FxSave.c
MdePkg: Replace Opcode with the corresponding instructions.
[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 #include "BaseLibInternals.h"
10
11 /**
12 Save the current floating point/SSE/SSE2 context to a buffer.
13
14 Saves the current floating point/SSE/SSE2 state to the buffer specified by
15 Buffer. Buffer must be aligned on a 16-byte boundary. This function is only
16 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 InternalX86FxSave (
24 OUT IA32_FX_BUFFER *Buffer
25 )
26 {
27 _asm {
28 mov eax, Buffer
29 fxsave [eax]
30 }
31 }