TimeoutRemain--;\r
}\r
}\r
- PlatformBootManagerWaitCallback (0);\r
+\r
+ //\r
+ // If the platform configured a nonzero and finite time-out, and we have\r
+ // actually reached that, report 100% completion to the platform.\r
+ //\r
+ // Note that the (TimeoutRemain == 0) condition excludes\r
+ // PcdPlatformBootTimeOut=0xFFFF, and that's deliberate.\r
+ //\r
+ if (PcdGet16 (PcdPlatformBootTimeOut) != 0 && TimeoutRemain == 0) {\r
+ PlatformBootManagerWaitCallback (0);\r
+ }\r
DEBUG ((EFI_D_INFO, "[Bds]Exit the waiting!\n"));\r
}\r
\r