diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-02 11:18:33 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-02 11:18:33 +0000 |
commit | 0bf47d3ddf96a69244f9d0c605e5dd5d76a64e9f (patch) | |
tree | eb473ae68d4b220604e7ab8c1b98a144df776cfb /MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c | |
parent | 7c34497d5de78120879d44ebf4b5e10004894873 (diff) | |
download | edk2-platforms-0bf47d3ddf96a69244f9d0c605e5dd5d76a64e9f.tar.xz |
1. add error handling in case DHCP success but boot request fail
2. add UnloadImage to ease debug
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9910 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c index d2e60b6a59..f406c507c3 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcDhcp.c @@ -1217,6 +1217,13 @@ PxeBcDiscvBootService ( }
}
+ if (TryIndex > PXEBC_BOOT_REQUEST_RETRIES) {
+ //
+ // No server response our PXE request
+ //
+ Status = EFI_TIMEOUT;
+ }
+
if (!EFI_ERROR (Status)) {
//
// Find Pxe Reply
|