]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFspWrapperPkg/Library/SecPeiFspPlatformSecLibSample/Ia32/SecEntry.S
Do not deadloop if Microcode not found in FspTempRamInit.
[mirror_edk2.git] / IntelFspWrapperPkg / Library / SecPeiFspPlatformSecLibSample / Ia32 / SecEntry.S
index 24bc36b9c449afccf7c21a467edeeecad4548c43..c0b84e075cac2dd398545064c3e27ea38c7c1961 100644 (file)
@@ -210,12 +210,22 @@ FspHeaderFound:
   jmp  *%eax\r
 \r
 TempRamInitDone:\r
+  cmp  $0x8000000E, %eax   #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  $0x0, %eax\r
   jnz  FspApiFailed\r
 \r
   #   ECX: start of range\r
   #   EDX: end of range\r
+CallSecFspInit:\r
+  xorl    %eax, %eax\r
   movl    %edx, %esp\r
+\r
+  # Align the stack at DWORD\r
+  addl  $3, %esp\r
+  andl  $0xFFFFFFFC, %esp\r
+\r
   pushl   %edx\r
   pushl   %ecx\r
   pushl   %eax # zero - no hob list yet\r