+ } else if (BootMode == BOOT_ON_FLASH_UPDATE) {\r
+ //\r
+ // If Capsule On Disk mode, call storage stack to read Capsule Relocation file\r
+ // IoMmmu is highly recommmended to enable before reading\r
+ //\r
+ Status = PeiServicesLocatePpi (\r
+ &gEdkiiPeiBootInCapsuleOnDiskModePpiGuid,\r
+ 0,\r
+ NULL,\r
+ &CapsuleOnDiskModePpi\r
+ );\r
+ if (!EFI_ERROR(Status)) {\r
+ Status = PeiServicesLocatePpi (\r
+ &gEdkiiPeiCapsuleOnDiskPpiGuid,\r
+ 0,\r
+ NULL,\r
+ (VOID **) &PeiCapsuleOnDisk\r
+ );\r
+\r
+ //\r
+ // Whether failed, still goes to Firmware Update boot path. BDS will clear corresponding indicator and reboot later on\r
+ //\r
+ if (!EFI_ERROR (Status)) {\r
+ Status = PeiCapsuleOnDisk->LoadCapsuleOnDisk (PeiServices, PeiCapsuleOnDisk);\r
+ }\r
+ }\r