;------------------------------------------------------------------------------\r
;\r
; Copyright (c) 2014, Intel Corporation. All rights reserved.<BR>\r
-; This program and the accompanying materials\r
-; are licensed and made available under the terms and conditions of the BSD License\r
-; which accompanies this distribution. The full text of the license may be found at\r
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+; SPDX-License-Identifier: BSD-2-Clause-Patent\r
;\r
; Module Name:\r
;\r
jmp eax\r
\r
TempRamInitDone:\r
- cmp eax, 0\r
+ cmp eax, 8000000Eh ;Check if EFI_NOT_FOUND returned. Error code for Microcode Update not found.\r
+ je CallSecFspInit ;If microcode not found, don't hang, but continue.\r
+\r
+ cmp eax, 0 ;Check if EFI_SUCCESS retuned.\r
jnz FspApiFailed\r
\r
; ECX: start of range\r
; EDX: end of range\r
+CallSecFspInit:\r
+ xor eax, eax\r
mov esp, edx\r
+\r
+ ; Align the stack at DWORD\r
+ add esp, 3\r
+ and esp, 0FFFFFFFCh\r
+\r
push edx\r
push ecx\r
push eax ; zero - no hob list yet\r