]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ia32/FxRestore.asm
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ia32 / FxRestore.asm
CommitLineData
3eb9473e 1; Copyright (c) 2004, Intel Corporation \r
2; All rights reserved. This program and the accompanying materials \r
3; are licensed and made available under the terms and conditions of the BSD License \r
4; which accompanies this distribution. The full text of the license may be found at \r
5; http://opensource.org/licenses/bsd-license.php \r
6; \r
7; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
8; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
9;\r
10; Module Name:\r
11;\r
12; FxRestore.Asm\r
13;\r
14; Abstract:\r
15;\r
16; AsmFxRestore function\r
17;\r
18; Notes:\r
19;\r
20;------------------------------------------------------------------------------\r
21\r
22 .586\r
23 .model flat,C\r
24 .xmm\r
25 .code\r
26\r
27;------------------------------------------------------------------------------\r
28; VOID\r
29; EFIAPI\r
30; InternalX86FxRestore (\r
31; IN CONST IA32_FX_BUFFER *Buffer\r
32; );\r
33;------------------------------------------------------------------------------\r
34InternalX86FxRestore PROC\r
35 mov eax, [esp + 4] ; Buffer must be 16-byte aligned\r
36 fxrstor [eax]\r
37 ret\r
38InternalX86FxRestore ENDP\r
39\r
40 END\r