]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/SecCarInit.nasm
IntelFsp2Pkg SecFspSecPlatformLibNull: Convert Ia32/Flat32.asm to NASM
[mirror_edk2.git] / IntelFsp2Pkg / Library / SecFspSecPlatformLibNull / Ia32 / SecCarInit.nasm
CommitLineData
03e30338
LG
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\r
18%macro RET_ESI 0\r
19\r
20 movd esi, mm7 ; move ReturnAddress from MM7 to ESI\r
21 jmp esi\r
22\r
23%endmacro\r
24\r
25SECTION .text\r
26\r
27;-----------------------------------------------------------------------------\r
28;\r
29; Section: SecCarInit\r
30;\r
31; Description: This function initializes the Cache for Data, Stack, and Code\r
32;\r
33;-----------------------------------------------------------------------------\r
34global ASM_PFX(SecCarInit)\r
35ASM_PFX(SecCarInit):\r
36\r
37 ;\r
38 ; Set up CAR\r
39 ;\r
40\r
41 xor eax, eax\r
42\r
43SecCarInitExit:\r
44\r
45 RET_ESI\r
46\r