]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/X64/Long64.nasm
IntelFsp2Pkg: SecFspSecPlatformLibNull support for X64
[mirror_edk2.git] / IntelFsp2Pkg / Library / SecFspSecPlatformLibNull / X64 / Long64.nasm
diff --git a/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/X64/Long64.nasm b/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/X64/Long64.nasm
new file mode 100644 (file)
index 0000000..836257f
--- /dev/null
@@ -0,0 +1,31 @@
+;; @file\r
+;  This is the code that performs early platform initialization.\r
+;  It consumes the reset vector, configures the stack.\r
+;\r
+; Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+; SPDX-License-Identifier: BSD-2-Clause-Patent\r
+;;\r
+\r
+;\r
+; Define assembler characteristics\r
+;\r
+\r
+extern   ASM_PFX(TempRamInitApi)\r
+\r
+SECTION .text\r
+\r
+%macro RET_RSI  0\r
+\r
+  movd    rsi, mm7                      ; restore RSI from MM7\r
+  jmp     rsi\r
+\r
+%endmacro\r
+\r
+;\r
+; Perform early platform initialization\r
+;\r
+global ASM_PFX(SecPlatformInit)\r
+ASM_PFX(SecPlatformInit):\r
+\r
+  RET_RSI\r
+\r