]>
Commit | Line | Data |
---|---|---|
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 | |
47fc17d8 | 9 | #include "BaseLibInternals.h"\r |
f734a10a | 10 | \r |
42eedea9 | 11 | /**\r |
12 | Save the current floating point/SSE/SSE2 context to a buffer.\r | |
13 | \r | |
14 | Saves the current floating point/SSE/SSE2 state to the buffer specified by\r | |
15 | Buffer. Buffer must be aligned on a 16-byte boundary. This function is only\r | |
030cd1a2 | 16 | available on IA-32 and x64.\r |
42eedea9 | 17 | \r |
2fc59a00 | 18 | @param Buffer The pointer to a buffer to save the floating point/SSE/SSE2 context.\r |
42eedea9 | 19 | \r |
20 | **/\r | |
e1f414b6 | 21 | VOID\r |
22 | EFIAPI\r | |
23 | InternalX86FxSave (\r | |
2f88bd3a | 24 | OUT IA32_FX_BUFFER *Buffer\r |
e1f414b6 | 25 | )\r |
26 | {\r | |
27 | _asm {\r | |
28 | mov eax, Buffer\r | |
29 | fxsave [eax]\r | |
30 | }\r | |
31 | }\r |