From: vanjeff Date: Wed, 10 Oct 2007 05:05:16 +0000 (+0000) Subject: Fixed one issue for IPF, the entry address needs 8 bytes alignment. X-Git-Url: http://git.etherboot.org/people/mcb30/edk2.git/commitdiff_plain/a04ddfa40b8c42f3641a76878a1f977d3bb70ba1 Fixed one issue for IPF, the entry address needs 8 bytes alignment. git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@4073 de2fecce-e211-0410-80a6-f3fac2684e05 --- diff --git a/edk2/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/edk2/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index b46c7047e..52b6e2165 100644 --- a/edk2/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/edk2/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c @@ -1545,10 +1545,10 @@ ArpFindCacheEntry ( if (EntryLength != NULL) { // - // Return the entry length. + // Return the entry length, make sure its 8 bytes alignment. // - *EntryLength = sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength + - ArpService->SnpMode.HwAddressSize; + *EntryLength = (((sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength + + ArpService->SnpMode.HwAddressSize) + 3) & ~(0x3)); } if (EntryCount != NULL) {