]>
Commit | Line | Data |
---|---|---|
cf1d4549 JY |
1 | ;; @file\r |
2 | ; SEC CAR function\r | |
3 | ;\r | |
4 | ; Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | ; This program and the accompanying materials\r | |
6 | ; are licensed and made available under the terms and conditions of the BSD License\r | |
7 | ; which accompanies this distribution. The full text of the license may be found at\r | |
8 | ; http://opensource.org/licenses/bsd-license.php.\r | |
9 | ;\r | |
10 | ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | ;;\r | |
13 | \r | |
14 | ;\r | |
15 | ; Define assembler characteristics\r | |
16 | ;\r | |
17 | .586p\r | |
18 | .xmm\r | |
19 | .model flat, c\r | |
20 | \r | |
21 | RET_ESI MACRO\r | |
22 | \r | |
23 | movd esi, mm7 ; move ReturnAddress from MM7 to ESI\r | |
24 | jmp esi\r | |
25 | \r | |
26 | ENDM\r | |
27 | \r | |
28 | .code \r | |
29 | \r | |
30 | ;-----------------------------------------------------------------------------\r | |
31 | ;\r | |
32 | ; Section: SecCarInit\r | |
33 | ;\r | |
34 | ; Description: This function initializes the Cache for Data, Stack, and Code\r | |
35 | ;\r | |
36 | ;-----------------------------------------------------------------------------\r | |
37 | SecCarInit PROC NEAR PUBLIC\r | |
38 | \r | |
39 | ;\r | |
40 | ; Set up CAR\r | |
41 | ;\r | |
42 | \r | |
43 | xor eax, eax\r | |
44 | \r | |
45 | SecCarInitExit:\r | |
46 | \r | |
47 | RET_ESI\r | |
48 | \r | |
49 | SecCarInit ENDP\r | |
50 | \r | |
51 | END\r |