]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/AsmSaveSecContext.S
DynamicTablesPkg: GTDT updates for ACPI 6.3
[mirror_edk2.git] / IntelFspWrapperPkg / Library / SecPeiFspPlatformSecLibSample / Ia32 / AsmSaveSecContext.S
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.S
9 #
10 # Abstract:
11 #
12 # Save Sec Conext before call FspInit API
13 #
14 #------------------------------------------------------------------------------
15
16 #----------------------------------------------------------------------------
17 # MMX Usage:
18 # MM0 = BIST State
19 # MM5 = Save time-stamp counter value high32bit
20 # MM6 = Save time-stamp counter value low32bit.
21 #
22 # It should be same as SecEntry.asm and PeiCoreEntry.asm.
23 #----------------------------------------------------------------------------
24
25 ASM_GLOBAL ASM_PFX(AsmSaveBistValue)
26 ASM_PFX(AsmSaveBistValue):
27 movl 4(%esp), %eax
28 movd %eax, %mm0
29 ret
30
31 ASM_GLOBAL ASM_PFX(AsmSaveTickerValue)
32 ASM_PFX(AsmSaveTickerValue):
33 movl 4(%esp), %eax
34 movd %eax, %mm6
35 movl 8(%esp), %eax
36 movd %eax, %mm5
37 ret