]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/AsmSaveSecContext.asm
181726c7f691a1897e3a18c96d2319bd87f0d19e
[mirror_edk2.git] / IntelFspWrapperPkg / Library / SecPeiFspPlatformSecLibSample / Ia32 / AsmSaveSecContext.asm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; AsmSaveSecContext.asm
9 ;
10 ; Abstract:
11 ;
12 ; Save Sec Conext before call FspInit API
13 ;
14 ;------------------------------------------------------------------------------
15
16 .686p
17 .xmm
18 .model flat,c
19 .code
20
21 ;----------------------------------------------------------------------------
22 ; MMX Usage:
23 ; MM0 = BIST State
24 ; MM5 = Save time-stamp counter value high32bit
25 ; MM6 = Save time-stamp counter value low32bit.
26 ;
27 ; It should be same as SecEntry.asm and PeiCoreEntry.asm.
28 ;----------------------------------------------------------------------------
29
30 AsmSaveBistValue PROC PUBLIC
31 mov eax, [esp+4]
32 movd mm0, eax
33 ret
34 AsmSaveBistValue ENDP
35
36 AsmSaveTickerValue PROC PUBLIC
37 mov eax, [esp+4]
38 movd mm6, eax
39 mov eax, [esp+8]
40 movd mm5, eax
41 ret
42 AsmSaveTickerValue ENDP
43
44 END