]>
Commit | Line | Data |
---|---|---|
a33a2f62 JY |
1 | #------------------------------------------------------------------------------\r |
2 | #\r | |
3 | # Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r | |
19486360 | 4 | # SPDX-License-Identifier: BSD-2-Clause-Patent\r |
a33a2f62 JY |
5 | #\r |
6 | # Module Name:\r | |
7 | #\r | |
8 | # AsmSaveSecContext.S\r | |
9 | #\r | |
10 | # Abstract:\r | |
11 | #\r | |
12 | # Save Sec Conext before call FspInit API\r | |
13 | #\r | |
14 | #------------------------------------------------------------------------------\r | |
15 | \r | |
16 | #----------------------------------------------------------------------------\r | |
17 | # MMX Usage:\r | |
18 | # MM0 = BIST State\r | |
19 | # MM5 = Save time-stamp counter value high32bit\r | |
20 | # MM6 = Save time-stamp counter value low32bit.\r | |
21 | #\r | |
22 | # It should be same as SecEntry.asm and PeiCoreEntry.asm.\r | |
23 | #----------------------------------------------------------------------------\r | |
24 | \r | |
25 | ASM_GLOBAL ASM_PFX(AsmSaveBistValue)\r | |
26 | ASM_PFX(AsmSaveBistValue):\r | |
27 | movl 4(%esp), %eax\r | |
28 | movd %eax, %mm0\r | |
29 | ret\r | |
30 | \r | |
31 | ASM_GLOBAL ASM_PFX(AsmSaveTickerValue)\r | |
32 | ASM_PFX(AsmSaveTickerValue):\r | |
33 | movl 4(%esp), %eax\r | |
34 | movd %eax, %mm6\r | |
35 | movl 8(%esp), %eax\r | |
36 | movd %eax, %mm5\r | |
37 | ret\r |