mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
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
This commit is contained in:
parent
1ce69023d6
commit
1b86875186
@ -1545,10 +1545,10 @@ ArpFindCacheEntry (
|
|||||||
|
|
||||||
if (EntryLength != NULL) {
|
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 +
|
*EntryLength = (((sizeof (EFI_ARP_FIND_DATA) + Instance->ConfigData.SwAddressLength +
|
||||||
ArpService->SnpMode.HwAddressSize;
|
ArpService->SnpMode.HwAddressSize) + 3) & ~(0x3));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EntryCount != NULL) {
|
if (EntryCount != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user