summaryrefslogtreecommitdiff
path: root/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/X64/Long64.nasm
blob: 836257f962b7dc96c08995eb66b51caf31379794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
;; @file
;  This is the code that performs early platform initialization.
;  It consumes the reset vector, configures the stack.
;
; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;;

;
; Define assembler characteristics
;

extern   ASM_PFX(TempRamInitApi)

SECTION .text

%macro RET_RSI  0

  movd    rsi, mm7                      ; restore RSI from MM7
  jmp     rsi

%endmacro

;
; Perform early platform initialization
;
global ASM_PFX(SecPlatformInit)
ASM_PFX(SecPlatformInit):

  RET_RSI