]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/FspSupport/Library/SecFspPlatformSecLibVlv2/Ia32/AsmSaveSecContext.asm
ArmPkg/CompilerIntrinsicsLib: Add uread, uwrite GCC assembly sources
[mirror_edk2.git] / Vlv2TbltDevicePkg / FspSupport / Library / SecFspPlatformSecLibVlv2 / 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 ; SecEntry.asm
9 ;
10 ; Abstract:
11 ;
12 ; This is the code that goes from real-mode to protected mode.
13 ; It consumes the reset vector, calls two basic APIs from FSP binary.
14 ;
15 ;------------------------------------------------------------------------------
16
17 .686p
18 .xmm
19 .model flat,c
20 .code
21
22 ;----------------------------------------------------------------------------
23 ; MMX Usage:
24 ; MM0 = BIST State
25 ; MM5 = Save time-stamp counter value high32bit
26 ; MM6 = Save time-stamp counter value low32bit.
27 ;
28 ; It should be same as SecEntry.asm and PeiCoreEntry.asm.
29 ;----------------------------------------------------------------------------
30
31 AsmSaveBistValue PROC PUBLIC
32 mov eax, [esp+4]
33 movd mm0, eax
34 ret
35 AsmSaveBistValue ENDP
36
37 AsmSaveTickerValue PROC PUBLIC
38 mov eax, [esp+4]
39 movd mm6, eax
40 mov eax, [esp+8]
41 movd mm5, eax
42 ret
43 AsmSaveTickerValue ENDP
44
45 END