]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/X64/SecCarInit.nasm
e64c77ed18f1ec5d215696bfbe4fa66eda60cb72
[mirror_edk2.git] / IntelFsp2Pkg / Library / SecFspSecPlatformLibNull / X64 / SecCarInit.nasm
1 ;; @file
2 ; SEC CAR function
3 ;
4 ; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
5 ; SPDX-License-Identifier: BSD-2-Clause-Patent
6 ;;
7
8 ;
9 ; Define assembler characteristics
10 ;
11
12 %macro RET_RSI 0
13
14 movd rsi, mm7 ; move ReturnAddress from MM7 to RSI
15 jmp rsi
16
17 %endmacro
18
19 SECTION .text
20
21 ;-----------------------------------------------------------------------------
22 ;
23 ; Section: SecCarInit
24 ;
25 ; Description: This function initializes the Cache for Data, Stack, and Code
26 ;
27 ;-----------------------------------------------------------------------------
28 global ASM_PFX(SecCarInit)
29 ASM_PFX(SecCarInit):
30
31 ;
32 ; Set up CAR
33 ;
34
35 xor rax, rax
36
37 SecCarInitExit:
38
39 RET_RSI
40