VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/X86FxSave.c@ 89916

Last change on this file since 89916 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 972 bytes
Line 
1/** @file
2 IA-32/x64 AsmFxSave()
3
4 Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9
10
11
12#include "BaseLibInternals.h"
13
14/**
15 Save the current floating point/SSE/SSE2 context to a buffer.
16
17 Saves the current floating point/SSE/SSE2 state to the buffer specified by
18 Buffer. Buffer must be aligned on a 16-byte boundary. This function is only
19 available on IA-32 and x64.
20
21 If Buffer is NULL, then ASSERT().
22 If Buffer is not aligned on a 16-byte boundary, then ASSERT().
23
24 @param Buffer A pointer to a buffer to save the floating point/SSE/SSE2 context.
25
26**/
27VOID
28EFIAPI
29AsmFxSave (
30 OUT IA32_FX_BUFFER *Buffer
31 )
32{
33 ASSERT (Buffer != NULL);
34 ASSERT (0 == ((UINTN)Buffer & 0xf));
35
36 InternalX86FxSave (Buffer);
37
38 //
39 // Mark one flag at end of Buffer, it will be check by AsmFxRestor()
40 //
41 *(UINT32 *) (&Buffer->Buffer[sizeof (Buffer->Buffer) - 4]) = 0xAA5555AA;
42}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette