ASSERT(PcdGet32 (PcdOvmfFirmwareFdSize) % mFdBlockSize == 0);\r
mFdBlockCount = PcdGet32 (PcdOvmfFirmwareFdSize) / mFdBlockSize;\r
\r
+ //\r
+ // execute module specific hooks before probing the flash\r
+ //\r
+ QemuFlashBeforeProbe (\r
+ (EFI_PHYSICAL_ADDRESS)(UINTN) mFlashBase,\r
+ mFdBlockSize,\r
+ mFdBlockCount\r
+ );\r
+\r
if (!QemuFlashDetected ()) {\r
+ ASSERT (!FeaturePcdGet (PcdSmmSmramRequire));\r
return EFI_WRITE_PROTECTED;\r
}\r
\r