summaryrefslogtreecommitdiff
path: root/BeagleBoardPkg/PciEmulation/PciEmulation.c
diff options
context:
space:
mode:
Diffstat (limited to 'BeagleBoardPkg/PciEmulation/PciEmulation.c')
-rw-r--r--BeagleBoardPkg/PciEmulation/PciEmulation.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/BeagleBoardPkg/PciEmulation/PciEmulation.c b/BeagleBoardPkg/PciEmulation/PciEmulation.c
index dee0541..f558597 100644
--- a/BeagleBoardPkg/PciEmulation/PciEmulation.c
+++ b/BeagleBoardPkg/PciEmulation/PciEmulation.c
@@ -318,12 +318,7 @@ PciIoUnmap (
// Make sure we read buffer from uncached memory and not the cache
//
gCpu->FlushDataCache (gCpu, Map->HostAddress, Map->NumberOfBytes, EfiCpuFlushTypeInvalidate);
- } else if (Map->Operation == EfiPciOperationBusMasterCommonBuffer) {
- //
- // CPU was using uncached address, so anything in the cached range is bogus
- //
- gCpu->FlushDataCache (gCpu, Map->DeviceAddress, Map->NumberOfBytes, EfiCpuFlushTypeInvalidate);
- }
+ }
FreePool (Map);