]> git.proxmox.com Git - mirror_edk2.git/commit
EmbeddedPkg: Fix Ebl dumpgcd bug with memory type and IO type
authorHeyi Guo <heyi.guo@linaro.org>
Wed, 27 May 2015 15:11:19 +0000 (15:11 +0000)
committeroliviermartin <oliviermartin@Edk2>
Wed, 27 May 2015 15:11:19 +0000 (15:11 +0000)
commit9507640c625d31b4ce3e5b45d8db58151b781dcb
tree3ec5ea8b2ebfa257916e0be3a4ae5420ae890a8d
parent829ea9b2dd8795da26729b4cd192e3e907725809
EmbeddedPkg: Fix Ebl dumpgcd bug with memory type and IO type

1. Data type for GcdMemoryType and GcdIoType is enumeration type
rather than bit field, so we need to use strict equation "=="
instead of bit-and "&";
2. Testing for GcdIoType should use EfiGcdIoType*** constants
rather than EfiGcdMemoryType***;
3. As we are going to use strict equation, it is clearer to use
switch-case than if-else.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Olivier Martin <Olivier.Martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17527 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.c