diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-10 05:05:16 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-10-10 05:05:16 +0000 |
commit | 1b86875186e6eb37b81046747a3fa898942cbc3b (patch) | |
tree | 754fb28e60ee5d32ada8f380bba924bf0f35e262 | |
parent | 1ce69023d6e1977564dc91495260005743930603 (diff) | |
download | edk2-platforms-1b86875186e6eb37b81046747a3fa898942cbc3b.tar.xz |
Fixed one issue for IPF, the entry address needs 8 bytes alignment.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4073 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c b/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c index b46c7047ee..52b6e21652 100644 --- a/MdeModulePkg/Universal/Network/ArpDxe/ArpImpl.c +++ b/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) {
|