]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixed one issue for IPF, the entry address needs 8 bytes alignment.
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Oct 2007 05:05:16 +0000 (05:05 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 10 Oct 2007 05:05:16 +0000 (05:05 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4073 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c

index b46c7047eefadaed9438b6c0e06118d77dc6deef..52b6e21652c630fa654153a80674649a92ffa654 100644 (file)
@@ -1545,10 +1545,10 @@ ArpFindCacheEntry (
 \r
   if (EntryLength != NULL) {\r
     //\r
 \r
   if (EntryLength != NULL) {\r
     //\r
-    // Return the entry length.\r
+    // Return the entry length, make sure its 8 bytes alignment.\r
     //\r
     //\r
-    *EntryLength = sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength +\r
-                   ArpService->SnpMode.HwAddressSize;\r
+    *EntryLength = (((sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength +\r
+                   ArpService->SnpMode.HwAddressSize) + 3) & ~(0x3));\r
   }\r
 \r
   if (EntryCount != NULL) {\r
   }\r
 \r
   if (EntryCount != NULL) {\r