From 6be6c2e04d32c9466ac60cf0d837ea9a28227dd4 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Fri, 28 May 2010 22:50:59 +0000 Subject: [PATCH] NullDmaLib:DmaMap() function needs to return valid DeviceAddress. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10554 6f19259b-4bc3-4df7-8a09-765794883524 --- EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c b/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c index 0ea89190c9..74386dfa28 100755 --- a/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c +++ b/EmbeddedPkg/Library/NullDmaLib/NullDmaLib.c @@ -50,6 +50,8 @@ DmaMap ( OUT VOID **Mapping ) { + *DeviceAddress = (PHYSICAL_ADDRESS)(UINTN)HostAddress; + *Mapping = NULL; return EFI_SUCCESS; }